freetype
[Top][All Lists]
Advanced

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

[ft] retrieving kerning infos misbehaves


From: Jürgen Herz
Subject: [ft] retrieving kerning infos misbehaves
Date: Sat, 03 Mar 2007 21:24:09 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2pre) Gecko/20070111 SeaMonkey/1.1

Hello,

I currently try getting kerning to work - but it doesn't work always.

It's weird, the first call to FT_Get_Kerning() always fills in the right
value for a kerning pair, regardless of any flag.

After a call to FT_Load_Glyph() later calls to FT_Get_Kerning() only
give the right value if it has FT_KERNING_UNFITTED or
FT_KERNING_UNSCALED set. Or when called with FT_KERNING_DEFAULT if
FT_Load_Glyph() has FT_LOAD_NO_HINTING or FT_LOAD_NO_SCALE (which
includes FT_LOAD_NO_HINTING) set.

But is FT_KERNING_DEFAULT set in FT_Get_Kerning() and FT_Load_Glyph()
has either FT_LOAD_DEFAULT, FT_LOAD_RENDER or FT_LOAD_NO_BITMAP set,
kerning infos are always 0.


I'm using Freetype 2.21 but have it also tested with 2.31.

Any ideas what that is?

Regards,
Jürgen




reply via email to

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