shithub: freetype+ttf2subf

Download patch

ref: 37b263e93aae60b73cde4c89059871a8adb64471
parent: a0d8abf98df337e08c1952fe59b96e39ea922740
author: David Turner <[email protected]>
date: Sat Jun 22 05:36:53 EDT 2002

* src/pfr/pfrgload.c (pfr_glyph_load_compound): fixing a small composite
    glyph loader bug that caused accents to be misplaced in a number of
    glyphs..

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,9 +1,15 @@
+2002-06-22  Detlef W�rkner  <[email protected]>
+
+    * src/pfr/pfrgload.c (pfr_glyph_load_compound): fixing a small composite
+    glyph loader bug that caused accents to be misplaced in a number of
+    glyphs..
+
 2002-06-21  Sven Neuman   <[email protected]>
 
-        * src/pfr/pfrobjs.h, src/pfr/pfrobjs.c, src/pfr/pfrload.c,
-        src/pfr/pfrtypes.h: adding Kerning support to the PFR driver
+    * src/pfr/pfrobjs.h, src/pfr/pfrobjs.c, src/pfr/pfrload.c,
+    src/pfr/pfrtypes.h: adding Kerning support to the PFR driver
 
-        * README, docs/CHANGES: preparing for the 2.1.2 release
+    * README, docs/CHANGES: preparing for the 2.1.2 release
 
 2002-06-19  Detlef W�rkner  <[email protected]>
 
--- a/src/pfr/pfrgload.c
+++ b/src/pfr/pfrgload.c
@@ -298,7 +298,7 @@
         PFR_CHECK( 1 );
         mask = PFR_NEXT_BYTE( p );
       }
-      
+
       if ( mask & 1 )
       {
         PFR_CHECK( 2 );
@@ -309,7 +309,7 @@
         PFR_CHECK( 1 );
         x += PFR_NEXT_BYTE( p );
       }
-      
+
       glyph->x_control[i] = x;
 
       mask >>= 1;
@@ -577,8 +577,6 @@
     }
 
     subglyph = glyph->subs + org_count;
-    x_pos    = 0;
-    y_pos    = 0;
 
     for ( i = 0; i < count; i++, subglyph++ )
     {
@@ -585,6 +583,9 @@
       FT_UInt  format;
 
 
+      x_pos    = 0;
+      y_pos    = 0;
+
       PFR_CHECK( 1 );
       format = PFR_NEXT_BYTE( p );
 
@@ -635,7 +636,7 @@
       default:
         ;
       }
-      
+
       subglyph->x_delta = x_pos;
       subglyph->y_delta = y_pos;