freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] FreeType 2.3.5 - incorrect bitmap_left / horiBearingX val


From: Werner LEMBERG
Subject: Re: [ft-devel] FreeType 2.3.5 - incorrect bitmap_left / horiBearingX values with Symbol TT font
Date: Mon, 25 Feb 2008 11:58:28 +0100 (CET)

> Is there any harm in making the following change in TT_Load_Glyph()
>
>   Replace
>
>     if ( ( face->header.Flags & 2 ) == 0 && loader.pp1.x )
>       FT_Outline_Translate( &glyph->outline, -loader.pp1.x, 0 );
>
>   with
>
>     if ( loader.pp1.x )
>       FT_Outline_Translate( &glyph->outline, -loader.pp1.x, 0 );
>
> in order to accommodate bad fonts like this?
>
> Or does this have some unwanted side-effect?

There are buggy fonts which exhibit exactly the opposite behaviour,
this is, they would display incorrectly if we reverted this patch.  (I
forgot the details, but I've added this code due to a bug report --
maybe you can find it somewhere in the list archive.)


    Werner




reply via email to

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