[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Devel] FT 2.0.9 - T1_Compute_Max_Advance broken
From: |
Michael Jansson |
Subject: |
[Devel] FT 2.0.9 - T1_Compute_Max_Advance broken |
Date: |
Tue, 16 Apr 2002 18:54:56 +0200 |
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?
Regards,
- Michael
- [Devel] FT 2.0.9 - T1_Compute_Max_Advance broken,
Michael Jansson <=