Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #3682
| From | ken <ken@spamcop.net> |
|---|---|
| Newsgroups | comp.lang.postscript |
| Subject | Re: otf/ttf to afm with kern pair adjustments |
| Date | 2021-09-28 07:52 +0100 |
| Message-ID | <MPG.3bbbdae31659aa5f9898cd@usenet.plus.net> (permalink) |
| References | <1c5cc337-1238-4e92-9649-3ce56166a2b8n@googlegroups.com> |
In article <1c5cc337-1238-4e92-9649-3ce56166a2b8n@googlegroups.com>, dougLas.L.mcaLLaster.civ@mail.mil says... > 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? The printafm.ps program doesn't actully extract any data from the font 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. Ken
Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar
otf/ttf to afm with kern pair adjustments "dougLas.L.mc...@maiL.mil" <dougLas.L.mcaLLaster.civ@mail.mil> - 2021-09-26 13:41 -0700
Re: otf/ttf to afm with kern pair adjustments ken <ken@spamcop.net> - 2021-09-28 07:52 +0100
Re: otf/ttf to afm with kern pair adjustments "dougLas.L.mc...@maiL.mil" <dougLas.L.mcaLLaster.civ@mail.mil> - 2021-09-30 10:02 -0700
Re: otf/ttf to afm with kern pair adjustments ken <ken@spamcop.net> - 2021-10-01 07:54 +0100
csiph-web