* src/truetype/ttpload.c (tt_face_get_location): Fix typo.

This commit is contained in:
Werner Lemberg 2005-05-07 06:10:19 +00:00
parent 483daa9f74
commit 43ebad4207
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2005-05-07 Werner Lemberg <wl@gnu.org>
* src/truetype/ttpload.c (tt_face_get_location): Fix typo.
2005-05-06 Werner Lemberg <wl@gnu.org>
* src/cff/cffobjs.c (cff_face_init): Set ppem value in top

View File

@ -163,7 +163,7 @@
/* Anyway, there do exist (malformed) fonts which don't obey */
/* this rule, so we are only able to provide an upper bound for */
/* the size. */
if ( pos2 > pos1 )
if ( pos2 >= pos1 )
*asize = (FT_UInt)( pos2 - pos1 );
else
*asize = (FT_UInt)( face->glyf_len - pos1 );
@ -288,7 +288,7 @@
/* Anyway, there do exist (malformed) fonts which don't obey */
/* this rule, so we are only able to provide an upper bound for */
/* the size. */
if ( offset1 > offset )
if ( offset1 >= offset )
count = (FT_UInt)( offset1 - offset );
else
count = (FT_UInt)( face->glyf_len - offset );