* src/autohint/ahhint.c (ah_hinter_load_glyph): Patch from

2003-08-18 introduced a severe bug (FT_Render_Glyph was called
twice under some circumstances, causing strange results).  This
is fixed now by clearing the FT_LOAD_RENDER bit of `load_flags'.

* src/base/ftpfr.c (FT_Get_PFR_Metrics): Initialize `error'.
* src/psaux/psobjs.c (ps_tobytes): Initialize `n'.
* src/type42/t42parse.c (t42_parse_sfnts): Initialize `string_size'.
This commit is contained in:
Werner Lemberg 2003-10-20 08:29:46 +00:00
parent 7418415f48
commit 17d7581918
5 changed files with 17 additions and 5 deletions

View File

@ -1,3 +1,14 @@
2003-10-19 Werner Lemberg <wl@gnu.org>
* src/autohint/ahhint.c (ah_hinter_load_glyph): Patch from
2003-08-18 introduced a severe bug (FT_Render_Glyph was called
twice under some circumstances, causing strange results). This
is fixed now by clearing the FT_LOAD_RENDER bit of `load_flags'.
* src/base/ftpfr.c (FT_Get_PFR_Metrics): Initialize `error'.
* src/psaux/psobjs.c (ps_tobytes): Initialize `n'.
* src/type42/t42parse.c (t42_parse_sfnts): Initialize `string_size'.
2003-10-16 Werner Lemberg <wl@gnu.org>
Completely revised Type 42 parser. It now handles both fonts

View File

@ -1850,9 +1850,9 @@
hinter->do_stem_adjust = FT_BOOL( hint_mode != FT_RENDER_MODE_LIGHT );
load_flags |= FT_LOAD_NO_SCALE
| FT_LOAD_IGNORE_TRANSFORM ;
load_flags |= FT_LOAD_NO_SCALE
| FT_LOAD_IGNORE_TRANSFORM;
load_flags &= ~FT_LOAD_RENDER;
error = ah_hinter_load( hinter, glyph_index, load_flags, 0 );

View File

@ -40,7 +40,7 @@
FT_Fixed *ametrics_x_scale,
FT_Fixed *ametrics_y_scale )
{
FT_Error error;
FT_Error error = FT_Err_Ok;
FT_Service_PfrMetrics service;

View File

@ -783,7 +783,7 @@
FT_Error error = PSaux_Err_Ok;
FT_Byte* cur = *acur;
FT_Long n;
FT_Long n = 0;
if ( cur >= limit )

View File

@ -511,6 +511,7 @@
T1_Skip_Spaces( parser );
status = BEFORE_START;
string_size = 0;
old_string_size = 0;
count = 0;