ref: 2293bb15c23e4e0ae3918f474ed567cf27153552
parent: 8e6c56f99e17c5f882dc11dda1444d7c12fe0325
author: Wu, Chia-I (吳佳一) <[email protected]>
date: Wed Oct 19 04:07:38 EDT 2005
* src/truetype/ttgload.c (TT_Load_Glyph): Allow size->ttmetrics to be invalid when FT_LOAD_NO_SCALE is set.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,16 +1,21 @@
-2005-10-17 David Turner <[email protected]>
-
- * src/base/ftobjs.c (FT_Open_Face): Don't call FT_New_GlyphSlot and
- FT_New_Size if we are opening a face with face_index < 0 (which is
- only used for testing the format).
+2005-10-19 Chia-I Wu <[email protected]>
- * src/gxvalid/gxvmort0.c (gxv_mort_subtable_type0_entry_validate):
- Remove compiler warning.
+ * src/truetype/ttgload.c (TT_Load_Glyph): Allow size->ttmetrics to be
+ invalid when FT_LOAD_NO_SCALE is set.
+2005-10-17 David Turner <[email protected]>
+
+ * src/base/ftobjs.c (FT_Open_Face): Don't call FT_New_GlyphSlot and
+ FT_New_Size if we are opening a face with face_index < 0 (which is
+ only used for testing the format).
+
+ * src/gxvalid/gxvmort0.c (gxv_mort_subtable_type0_entry_validate):
+ Remove compiler warning.
+
2005-10-16 David Turner <[email protected]>
- * src/tools/apinames.c: Add new tool to extract public API function
- names from header files.
+ * src/tools/apinames.c: Add new tool to extract public API function
+ names from header files.
2005-10-05 Werner Lemberg <[email protected]>
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -2020,7 +2020,8 @@
#endif /* TT_CONFIG_OPTION_EMBEDDED_BITMAPS */
- if ( !size->ttmetrics.valid )
+ /* if FT_LOAD_NO_SCALE is not set, ttmetirc must be valid */
+ if ( !( load_flags & FT_LOAD_NO_SCALE ) && !size->ttmetrics.valid )
return TT_Err_Invalid_Size_Handle;
if ( load_flags & FT_LOAD_SBITS_ONLY )
@@ -2061,7 +2062,7 @@
/* This is _critical_ to get correct output for monochrome */
/* TrueType glyphs at all sizes using the bytecode interpreter. */
/* */
- if ( size->root.metrics.y_ppem < 24 )
+ if ( !( load_flags & FT_LOAD_NO_SCALE ) && size->root.metrics.y_ppem < 24 )
glyph->outline.flags |= FT_OUTLINE_HIGH_PRECISION;
return error;