ref: 17d758191882b4627e814673583ce487704785b8
parent: 7418415f48f8f019b732a2e36b26af3ac9fbe900
author: Werner Lemberg <[email protected]>
date: Mon Oct 20 04:29:46 EDT 2003
* 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'.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2003-10-19 Werner Lemberg <[email protected]>
+
+ * 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 <[email protected]>
Completely revised Type 42 parser. It now handles both fonts
--- 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 );
--- 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;
--- 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 )
--- 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;