shithub: freetype+ttf2subf

Download patch

ref: 3a36ef7e6ea40d4763a74db8fef6da0e136edc33
parent: 6d8c18214efac66ca60bc9bd63845a0fc676ad8e
author: Werner Lemberg <[email protected]>
date: Fri May 27 00:18:20 EDT 2005

* src/base/ftsynth.c (FT_GlyphSlot_Embolden): Initialize `error'.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-05-27  Chia I Wu  <[email protected]>
+
+	* src/base/ftsynth.c (FT_GlyphSlot_Embolden): Initialize `error'.
+
 2005-05-26  Werner Lemberg  <[email protected]>
 
 	* docs/GPL.txt: Update postal address of FSF.
--- a/src/base/ftsynth.c
+++ b/src/base/ftsynth.c
@@ -75,8 +75,8 @@
   {
     FT_Library  library = slot->library;
     FT_Face     face    = FT_SLOT_FACE( slot );
+    FT_Error    error   = FT_Err_Ok;
     FT_Pos      xstr, ystr;
-    FT_Error    error;
 
 
     /* some reasonable strength */
@@ -87,7 +87,7 @@
     if ( slot->format == FT_GLYPH_FORMAT_OUTLINE )
     {
       error = FT_Outline_Embolden( &slot->outline, xstr );
-      xstr = xstr * 4 ; /* according to the documentation */
+      xstr = xstr * 4;  /* according to the documentation */
       ystr = xstr;
     }
     else if ( slot->format == FT_GLYPH_FORMAT_BITMAP )