shithub: freetype+ttf2subf

Download patch

ref: 5b4d435a969706dfb2ff070ebd1d65e832d2b08b
parent: c67fb6f1a357097f34e3498200995eba3360b272
author: Werner Lemberg <[email protected]>
date: Wed Jun 20 03:07:55 EDT 2007

* src/cff/cffgload.c (cff_slot_load): Fix logic of 2007-05-28
change.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-06-20  Werner Lemberg  <[email protected]>
+
+	* src/cff/cffgload.c (cff_slot_load): Fix logic of 2007-05-28
+	change.
+
 2007-06-19  Werner Lemberg  <[email protected]>
 
 	* src/type1/t1load.c (parse_encoding): Handle one more error.
--- a/src/cff/cffgload.c
+++ b/src/cff/cffgload.c
@@ -2566,14 +2566,14 @@
         glyph->root.outline.flags |= FT_OUTLINE_REVERSE_FILL;
 
         /* apply the font matrix */
-        if ( font_matrix.xx != 0x10000L &&
-             font_matrix.yy != 0x10000L &&
-             font_matrix.xy != 0        &&
-             font_matrix.yx != 0        )
+        if ( !( font_matrix.xx == 0x10000L &&
+                font_matrix.yy == 0x10000L &&
+                font_matrix.xy == 0        &&
+                font_matrix.yx == 0        ) )
           FT_Outline_Transform( &glyph->root.outline, &font_matrix );
 
-        if ( font_offset.x != 0 ||
-             font_offset.y != 0 )
+        if ( !( font_offset.x == 0 &&
+                font_offset.y == 0 ) )
           FT_Outline_Translate( &glyph->root.outline,
                                 font_offset.x, font_offset.y );