freetype
[Top][All Lists]
Advanced

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

Re: [ft] retrieving kerning infos misbehaves


From: Jürgen Herz
Subject: Re: [ft] retrieving kerning infos misbehaves
Date: Tue, 06 Mar 2007 11:51:58 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2pre) Gecko/20070111 SeaMonkey/1.1

Hi,

unfortunately I got no replies on my previous posts. Seeing Johannes'
post gets some replies and even a bug was discovered I've new hopes
regarding my issue and try it again.

Jürgen Herz wrote:
> 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've to add that this only applies to TrueType fonts, Type1 fonts seem
not to have this issue.

Regards,
Jürgen




reply via email to

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