fix bug in the PFM parser: kerning values must be read as 16-bit *signed* values

This commit is contained in:
David Turner 2007-03-05 17:40:03 +00:00
parent de5e686661
commit 085bc6e2b2
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-03-05 David Turner <david@freetype.org>
* 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 <david@freetype.org>
* src/pshinter/pshalgo.c (psh_hint_align): Fix a bug in the hinting

View File

@ -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++;