ref: 43ebad42076190ea2328a05186268a6ffd75d0a1
parent: 483daa9f74fcabc4846d2cf5f483ebfd50ef60f7
author: Werner Lemberg <[email protected]>
date: Sat May 7 02:10:19 EDT 2005
* src/truetype/ttpload.c (tt_face_get_location): Fix typo.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-05-07 Werner Lemberg <[email protected]>
+
+ * src/truetype/ttpload.c (tt_face_get_location): Fix typo.
+
2005-05-06 Werner Lemberg <[email protected]>
* src/cff/cffobjs.c (cff_face_init): Set ppem value in top
--- a/src/truetype/ttpload.c
+++ b/src/truetype/ttpload.c
@@ -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 );