From 43ebad42076190ea2328a05186268a6ffd75d0a1 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sat, 7 May 2005 06:10:19 +0000 Subject: [PATCH] * src/truetype/ttpload.c (tt_face_get_location): Fix typo. --- ChangeLog | 4 ++++ src/truetype/ttpload.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index bf076e9c3..2931ca5b7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-05-07 Werner Lemberg + + * src/truetype/ttpload.c (tt_face_get_location): Fix typo. + 2005-05-06 Werner Lemberg * 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 2f589b471..b9c83e1a4 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 );