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

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

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

revision 1.152 by wl, Wed Sep 28 07:34:45 2005 UTC revision 1.153 by olvaffe, Wed Oct 19 08:07:38 2005 UTC
# Line 2020  Line 2020 
2020    
2021  #endif /* TT_CONFIG_OPTION_EMBEDDED_BITMAPS */  #endif /* TT_CONFIG_OPTION_EMBEDDED_BITMAPS */
2022    
2023      if ( !size->ttmetrics.valid )      /* if FT_LOAD_NO_SCALE is not set, ttmetirc must be valid */
2024        if ( !( load_flags & FT_LOAD_NO_SCALE ) && !size->ttmetrics.valid )
2025        return TT_Err_Invalid_Size_Handle;        return TT_Err_Invalid_Size_Handle;
2026    
2027      if ( load_flags & FT_LOAD_SBITS_ONLY )      if ( load_flags & FT_LOAD_SBITS_ONLY )
# Line 2061  Line 2062 
2062      /* This is _critical_ to get correct output for monochrome      */      /* This is _critical_ to get correct output for monochrome      */
2063      /* TrueType glyphs at all sizes using the bytecode interpreter. */      /* TrueType glyphs at all sizes using the bytecode interpreter. */
2064      /*                                                              */      /*                                                              */
2065      if ( size->root.metrics.y_ppem < 24 )      if ( !( load_flags & FT_LOAD_NO_SCALE ) && size->root.metrics.y_ppem < 24 )
2066        glyph->outline.flags |= FT_OUTLINE_HIGH_PRECISION;        glyph->outline.flags |= FT_OUTLINE_HIGH_PRECISION;
2067    
2068      return error;      return error;

Legend:
Removed from v.1.152  
changed lines
  Added in v.1.153

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