freetype-devel
[Top][All Lists]
Advanced

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

Re: [Devel] FT 2.0.9 - T1_Compute_Max_Advance broken


From: David Turner
Subject: Re: [Devel] FT 2.0.9 - T1_Compute_Max_Advance broken
Date: Wed, 17 Apr 2002 14:28:32 +0200

Hello Michael,

Michael Jansson a écrit :
> 
> Hi,
> 
> Found a problem: T1_Compute_Max_Advance() always return the advance width of
> the last glyph of type 1 fonts. This is easily fixed by renaming the
> function to T1_Compute_Last_Advance (no, just kidding ;-), or by the
> following bit of code:
> 
> freetype-2.0.9/src/type1/t1gload.c
> 113c113,115
> <       error = T1_Parse_Glyph( &decoder, glyph_index );
> ---
> >       error = T1_Parse_Glyph( &decoder, glyph_index );
> >       if (glyph_index==0 || (decoder.builder.advance.x>*max_advance))
> >          *max_advance = decoder.builder.advance.x;
> 117d118
> <     *max_advance = decoder.builder.advance.x;
> 
> Is this a known issue?
>

That wasn't a known issue. I wonder where this bug comes
from... probably some changes I've made in the glyph loader that
were not correctly propagated to all functions..

I've put your fix in 2.1.0. Thanks a lot

- David Turner
- The FreeType Project



reply via email to

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