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 ) |
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; |