ref: 085bc6e2b27297ea55a5b6d64a1425c7cd649385
parent: de5e686661326bfef3f78697f4e1f2aabd38bc48
author: David Turner <[email protected]>
date: Mon Mar 5 12:40:03 EST 2007
fix bug in the PFM parser: kerning values must be read as 16-bit *signed* values
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-03-05 David Turner <[email protected]>
+
+ * src/type1/t1afm.c (T1_Read_PFM): bug fix: read the kerning values
+ as 16-bit *signed* values, not unsigned ones.
+
2007-02-21 David Turner <[email protected]>
* src/pshinter/pshalgo.c (psh_hint_align): Fix a bug in the hinting
--- a/src/type1/t1afm.c
+++ b/src/type1/t1afm.c
@@ -193,7 +193,7 @@
kp->index1 = FT_Get_Char_Index( t1_face, p[0] );
kp->index2 = FT_Get_Char_Index( t1_face, p[1] );
- kp->x = (FT_Int)FT_PEEK_USHORT_LE(p + 2);
+ kp->x = (FT_Int)FT_PEEK_SHORT_LE(p + 2);
kp->y = 0;
kp++;