shithub: freetype+ttf2subf

Download patch

ref: 72185cb5f4904e42f18a5074341bf25966510136
parent: 298608d1d22e2e3dd9d6d43fafaa86f2fcab0d23
author: Kal Conley <[email protected]>
date: Sat Oct 15 05:33:11 EDT 2011

Fix handling of transformations if no renderer is present.

* src/base/ftobjs.c (FT_Load_Glyph): Thinko.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-10-15  Kal Conley  <[email protected]>
 
+	Fix handling of transformations if no renderer is present.
+
+	* src/base/ftobjs.c (FT_Load_Glyph): Thinko.
+
+2011-10-15  Kal Conley  <[email protected]>
+
 	Fix conditions for autohinting.
 
 	* src/base/ftobjs.c (FT_Load_Glyph): Handle
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -757,11 +757,11 @@
         else if ( slot->format == FT_GLYPH_FORMAT_OUTLINE )
         {
           /* apply `standard' transformation if no renderer is available */
-          if ( &internal->transform_matrix )
+          if ( internal->transform_flags & 1 )
             FT_Outline_Transform( &slot->outline,
                                   &internal->transform_matrix );
 
-          if ( &internal->transform_delta )
+          if ( internal->transform_flags & 2 )
             FT_Outline_Translate( &slot->outline,
                                   internal->transform_delta.x,
                                   internal->transform_delta.y );