OT2KPX(1)

NAME
ot2kpx - extract kerning information from an OpenType font

SYNOPSIS
ot2kpx font

DESCRIPTION
In many OpenType fonts, most kerning data is stored in the `GPOS' table rather than in the `kern' table. ot2kpx extracts the kerning data from both tables and prints it (in afm format) to "stdout".

RESTRICTIONS
ot2kpx prints data from all features named `kern', regardless of script and language. Maybe it would be better to let the user choose a script and language (defaulting to `latn' and `DFLT') and print only the kerning data from features associated with these values. ot2kpx uses only the XAdvance data associated with the first glyph in any kerning pair; all other data in the ValueRecords is ignored. I'm not sure whether this is The Right Thing to Do; however, almost always there is no other data, so this approach gives correct results (in fact, the only font I know of that does contain data other than XAdvance is Linotype Palatino; this also contains XAdvDevice data, which is used (according to the OpenType specification) to `define subtle, device-dependent adjustments at specific font sizes or device resolutions'. Since there is no way to express such adjustments in afm format, ignoring them seems to be the only option.)

SEE ALSO
afm2afm, autoinst, cmap2enc, font2afm, pfm2kpx.

AUTHOR
Marc Penninga <marc@penninga.info>

HISTORY
First version Rewrote some of the code Input files searched via kpsewhich (where available) Input files searched using kpsewhich or findtexmf Test if GPOS table is present before trying to read it Improved the documentation Changed warning that's given when the font contains no GPOS table, to an informational message. A few updates to the documentation