[Top][All Lists]

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

Re: [ft-devel] FT_Get_Kerning returns 0

From: Werner LEMBERG
Subject: Re: [ft-devel] FT_Get_Kerning returns 0
Date: Mon, 19 Sep 2011 07:18:23 +0200 (CEST)

> I check if my TTF file has kerning information using FT_HAS_KERNING,
> and this returns true.  I then use: FT_Get_Kerning(face, prev, next,
> FT_KERNING_DEFAULT, &delta); to determine the kerning value, but
> delta.x returns 0.  How can I debug why the kerning value is 0 even
> though FT_HAS_KERNING returns true?

Don't assume that there is a kerning value for all glyph pairs!  Use a
program like `ttx' ( to get a dump
of a TrueType font.  Then check whether there is a kerning value
between the two particular glyphs.


reply via email to

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