* src/cff/cffgload.c (cff_slot_load): Fix logic of 2007-05-28 change.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
diff --git a/ChangeLog b/ChangeLog
index 539ac03..b3b4a96 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-06-20 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffgload.c (cff_slot_load): Fix logic of 2007-05-28
+ change.
+
2007-06-19 Werner Lemberg <wl@gnu.org>
* src/type1/t1load.c (parse_encoding): Handle one more error.
diff --git a/src/cff/cffgload.c b/src/cff/cffgload.c
index 8fef0ab..0e2a179 100644
--- 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 );