163 |
/* Anyway, there do exist (malformed) fonts which don't obey */ |
/* Anyway, there do exist (malformed) fonts which don't obey */ |
164 |
/* this rule, so we are only able to provide an upper bound for */ |
/* this rule, so we are only able to provide an upper bound for */ |
165 |
/* the size. */ |
/* the size. */ |
166 |
if ( pos2 > pos1 ) |
if ( pos2 >= pos1 ) |
167 |
*asize = (FT_UInt)( pos2 - pos1 ); |
*asize = (FT_UInt)( pos2 - pos1 ); |
168 |
else |
else |
169 |
*asize = (FT_UInt)( face->glyf_len - pos1 ); |
*asize = (FT_UInt)( face->glyf_len - pos1 ); |
288 |
/* Anyway, there do exist (malformed) fonts which don't obey */ |
/* Anyway, there do exist (malformed) fonts which don't obey */ |
289 |
/* this rule, so we are only able to provide an upper bound for */ |
/* this rule, so we are only able to provide an upper bound for */ |
290 |
/* the size. */ |
/* the size. */ |
291 |
if ( offset1 > offset ) |
if ( offset1 >= offset ) |
292 |
count = (FT_UInt)( offset1 - offset ); |
count = (FT_UInt)( offset1 - offset ); |
293 |
else |
else |
294 |
count = (FT_UInt)( face->glyf_len - offset ); |
count = (FT_UInt)( face->glyf_len - offset ); |