freetype
[Top][All Lists]
Advanced

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

Re: [ft] How do I iterate over each kerning pair?


From: Werner LEMBERG
Subject: Re: [ft] How do I iterate over each kerning pair?
Date: Thu, 30 Dec 2010 17:58:20 +0100 (CET)

> I know that you can use FT_Get_Kerning() if you want to retrieve the
> kerning for a specific pair of glyphs but what if I just want to
> loop over all of the available kerning pairs and get the
> information?

Assuming that you are using TrueType fonts, the easiest way is to
parse the `kern' table manually.  Note, however, that modern OpenType
fonts no longer have a `kern' table.  Instead, kerns are stored in the
GPOS table, allowing two-dimensional kerning, context sensitive
kerning, and much more.  For the latter, the definition of a `kerning
pair' no longer exists.


    Werner



reply via email to

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