diff --git a/ChangeLog b/ChangeLog index bb9e84645..aeca1d4a1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2003-10-19 Werner Lemberg + + * 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 Completely revised Type 42 parser. It now handles both fonts diff --git a/src/autohint/ahhint.c b/src/autohint/ahhint.c index c4c8cfc50..4a10bd56e 100644 --- a/src/autohint/ahhint.c +++ b/src/autohint/ahhint.c @@ -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 ); diff --git a/src/base/ftpfr.c b/src/base/ftpfr.c index 80a657c66..fb959e37f 100644 --- a/src/base/ftpfr.c +++ b/src/base/ftpfr.c @@ -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; diff --git a/src/psaux/psobjs.c b/src/psaux/psobjs.c index c7f26015f..826947db0 100644 --- a/src/psaux/psobjs.c +++ b/src/psaux/psobjs.c @@ -783,7 +783,7 @@ FT_Error error = PSaux_Err_Ok; FT_Byte* cur = *acur; - FT_Long n; + FT_Long n = 0; if ( cur >= limit ) diff --git a/src/type42/t42parse.c b/src/type42/t42parse.c index f3b408869..d22c6df09 100644 --- a/src/type42/t42parse.c +++ b/src/type42/t42parse.c @@ -511,6 +511,7 @@ T1_Skip_Spaces( parser ); status = BEFORE_START; + string_size = 0; old_string_size = 0; count = 0;