* src/truetype/ttpload.c (tt_face_get_location): Fix typo.
diff --git a/ChangeLog b/ChangeLog
index bf076e9..2931ca5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/src/truetype/ttpload.c b/src/truetype/ttpload.c
index 2f589b4..b9c83e1 100644
--- 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 );