/[freetype]/freetype2/src/truetype/ttpload.c
ViewVC logotype

Diff of /freetype2/src/truetype/ttpload.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.31 by wl, Thu May 5 07:44:20 2005 UTC revision 1.32 by wl, Sat May 7 06:10:19 2005 UTC
# Line 163  Line 163 
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 );
# Line 288  Line 288 
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 );

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26