I found below postscript program in ghostscript distro.
I creates the AFM file but does not include the KPX data.
Does any have a ps job which extracts the KPX data?
In article <1c5cc337-1238-4e92...@googlegroups.com>,
dougLas.L.mc...@mail.mil says...
I found below postscript program in ghostscript distro.The printafm.ps program doesn't actully extract any data from the font
I creates the AFM file but does not include the KPX data.
Does any have a ps job which extracts the KPX data?
at all. What it does is use the built-in font interpreter to interpret
the font data, and some standard PostScript to **create** soemthing akin
to an AFM file. THis means that it will work with any font type
supported by Ghostscript.
Basically it does this by using the PostScript 'stringwidth' on a single character to determine the horizontal (or vertical, for vertical writing fonts) displaement of the glyph, and then turns the glyph description
into a path, and executes charpath pathbbox to determine the bounding
box.
If you want actual data from the TrueType font you will need to write a PostScript program to read and interpret TrueType/OpenType fonts
(bearing in mind that OpenType fonts can have CFF outline data).
Presumably you want the kern table (I've no idea what KPX means in this context) since you mention OpenType/TrueType fonts.
To be frank, you would almost certainly be better off extracting that
with some other tool; writing a PostScript program to do it is perfectly possible but probably not wise.
KenThanks, Ken, for explaining what that printAFM.ps job actually does.
Thanks, Ken, for explaining what that printAFM.ps job actually does.
Yes, I am after the kern table.
Do you have any suggestions on what 'tool' would extract the kern table from a TTF or OTF font file?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 295 |
Nodes: | 16 (2 / 14) |
Uptime: | 08:57:04 |
Calls: | 6,642 |
Calls today: | 2 |
Files: | 12,190 |
Messages: | 5,326,324 |