Werner: Thanks for getting back to me so quickly. I'm not delving into the 
TrueType file myself, I'm just using FreeType to open it and extract the 
goodies. How do I parse the 'kern' table? I have looked through freetype.h and 
I do not see any functions that provide access to this table.

For my purposes I don't need to get fancy with multi-dimensional kerning 
although once I get the basics down I will certainly be more than happy to see 
how much farther I can take it.

I'm trying to get FreeType font hinting to work in Juce.

Thanks

--- On Thu, 12/30/10, Werner LEMBERG <[email protected]> wrote:

> From: Werner LEMBERG <[email protected]>
> Subject: Re: [ft] How do I iterate over each kerning pair?
> To: [email protected]
> Cc: [email protected]
> Date: Thursday, December 30, 2010, 11:58 AM
> 
> > 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
>

_______________________________________________
Freetype mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype

Reply via email to