freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Devel] Re: [Freetype] PFM support.


From: Werner LEMBERG
Subject: [Devel] Re: [Freetype] PFM support.
Date: Thu, 29 Jul 2004 18:54:06 +0200 (CEST)

> How do i get kerning info from TYPE1 font on Windows.

Sorry, my fault, I missed kerning which isn't in a Type 1 font.

> Since Win2k & XP has .PFM and not .AFM files and FT currently
> supports .AFM files only i guess i need to implement .PFM access to
> get that info.

In case you do that please contribute the code to FreeType.
Otherwise, I suggest to use e.g. Ghostscript's pf2afm utility to
create AFM files from the PFB (or PFA) and the PFM file.

The easiest way probably is to extend the T1_Read_AFM function (in
src/type1/t1afm.c), checking whether first four bytes are `0', `1',
`x', `y', where y*256+x is exactly the size of the PFM file.


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]