freetype
[Top][All Lists]
Advanced

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

Re: [ft] Possible bug with unhinted scaled metrics


From: David Turner
Subject: Re: [ft] Possible bug with unhinted scaled metrics
Date: Thu, 22 Feb 2007 15:55:02 +0100

Hello Damon,

the returned 26.6 advance is always rounded, even with FT_LOAD_NO_HINTING.
You can however retrieve the linearly scaled value as a 16.16 fixed float
number through face->glyph->linearHoriAdvance. This works even with hinted
glyphs.

just shift it 10 bits to the right to get the equivalent FT_F26Dot6

Hope this helps,

- David Turner
- The FreeType Project  (www.freetype.org)

On Thu, 22 Feb 2007 14:13:02 +0000, "Damon Chaplin" <address@hidden> said:
> 
> Hi,
> 
> If I scale an unhinted font I expect the metrics to scale linearly. But
> there seem to be slight errors.
> 
> I've attached a test app to show what I mean. It loads a font face, and
> uses FT_Set_Char_Size() and FT_Load_Glyph() to get a glyph's metrics at
> two different sizes. The advance of the second one is different from
> what is expected. (You might need to change the path to the font.)
> 
> Is it a freetype bug? Or my error?
> 
> I've tried freetype 2.2.1 (in Fedora 6) and 2.3.1.
> 
> Thanks,
> 
> Damon
> 




reply via email to

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