* src/type1/t1gload.c (T1_Load_Glyph), src/cff/cffgload.c (cff_slot_load), src/cid/cidgload.c (cid_slot_load_glyph): Fix previous 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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
diff --git a/ChangeLog b/ChangeLog
index f748acc..8bcf7a3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-08-06 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1gload.c (T1_Load_Glyph), src/cff/cffgload.c
+ (cff_slot_load), src/cid/cidgload.c (cid_slot_load_glyph): Fix
+ previous change.
+
2003-08-05 Werner Lemberg <wl@gnu.org>
* src/type1/t1gload.c (T1_Load_Glyph), src/cff/cffgload.c
diff --git a/src/cff/cffgload.c b/src/cff/cffgload.c
index d9a10bc..43d6849 100644
--- a/src/cff/cffgload.c
+++ b/src/cff/cffgload.c
@@ -2442,12 +2442,13 @@
font_offset.y );
advance.x = metrics->horiAdvance;
+ advance.y = 0;
+ FT_Vector_Transform( &advance, &font_matrix );
+ metrics->horiAdvance = advance.x + font_offset.x;
+ advance.x = 0;
advance.y = metrics->vertAdvance;
FT_Vector_Transform( &advance, &font_matrix );
- advance.x += font_offset.x;
- advance.y += font_offset.y;
- metrics->horiAdvance = advance.x;
- metrics->vertAdvance = advance.y;
+ metrics->vertAdvance = advance.y + font_offset.y;
if ( ( load_flags & FT_LOAD_NO_SCALE ) == 0 )
{
diff --git a/src/cid/cidgload.c b/src/cid/cidgload.c
index 9136388..e07fb71 100644
--- a/src/cid/cidgload.c
+++ b/src/cid/cidgload.c
@@ -375,12 +375,13 @@
font_offset.y );
advance.x = metrics->horiAdvance;
+ advance.y = 0;
+ FT_Vector_Transform( &advance, &font_matrix );
+ metrics->horiAdvance = advance.x + font_offset.x;
+ advance.x = 0;
advance.y = metrics->vertAdvance;
FT_Vector_Transform( &advance, &font_matrix );
- advance.x += font_offset.x;
- advance.y += font_offset.y;
- metrics->horiAdvance = advance.x;
- metrics->vertAdvance = advance.y;
+ metrics->vertAdvance = advance.y + font_offset.y;
if ( ( load_flags & FT_LOAD_NO_SCALE ) == 0 )
{
diff --git a/src/type1/t1gload.c b/src/type1/t1gload.c
index 49fb589..b4573d6 100644
--- a/src/type1/t1gload.c
+++ b/src/type1/t1gload.c
@@ -333,12 +333,13 @@
font_offset.y );
advance.x = metrics->horiAdvance;
+ advance.y = 0;
+ FT_Vector_Transform( &advance, &font_matrix );
+ metrics->horiAdvance = advance.x + font_offset.x;
+ advance.x = 0;
advance.y = metrics->vertAdvance;
FT_Vector_Transform( &advance, &font_matrix );
- advance.x += font_offset.x;
- advance.y += font_offset.y;
- metrics->horiAdvance = advance.x;
- metrics->vertAdvance = advance.y;
+ metrics->vertAdvance = advance.y + font_offset.y;
#endif
if ( ( load_flags & FT_LOAD_NO_SCALE ) == 0 )