ref: 7f1458aaa389317124eb807e5b71f0fb9c0d3746
parent: 91a67478ec4a8ef0a7363f4728dd6c06be1ca92f
author: Werner Lemberg <[email protected]>
date: Wed Dec 17 16:57:56 EST 2003
* src/sfnt/sfobjs.c (sfnt_init_face): Don't set FT_FACE_FLAG_GLYPH_NAMES if the font contains a version 3.0 `post' table. * docs/CHANGES: Updated.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2003-12-17 Werner Lemberg <[email protected]>
+
+ * src/sfnt/sfobjs.c (sfnt_init_face): Don't set
+ FT_FACE_FLAG_GLYPH_NAMES if the font contains a version 3.0 `post'
+ table.
+
+ * docs/CHANGES: Updated.
+
2003-12-17 Masatake YAMATO <[email protected]>
Add new function FT_Get_CMap_Language_ID to extract the language ID
--- a/docs/CHANGES
+++ b/docs/CHANGES
@@ -14,7 +14,10 @@
correctly treated as a CID, similar to FreeType's CID driver
module. Note that CID CMaps support is still missing.
+ - SFNT based fonts no longer set the FT_FACE_FLAGS_GLYPH_NAMES
+ flag if a version 3.0 `post' table is present.
+
II. IMPORTANT CHANGES
- Both PCF and BDF drivers now handle the SETWIDTH_NAME and
@@ -21,7 +24,11 @@
ADD_STYLE_NAME properties. Values are appended to
face->style_name; example: `Bold SemiCondensed'.
+ - A new API function `FT_Get_CMap_Language_ID' (declared in
+ `tttables.h') is available to get the language ID of a
+ TrueType/SFNT cmap.
+
III. MISCELLANEOUS
- Wolfgang Domr�se contributed support files for building FreeType
@@ -164,7 +171,7 @@
- The algorithm for guessing the font style has been improved.
- - For fonts in sfnt format, root->height is no longer increased if
+ - For fonts in SFNT format, root->height is no longer increased if
the line gap is zero. There exist fonts (containing e.g. form
drawing characters) which intentionally have a zero line gap
value.
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -529,7 +529,8 @@
FT_FACE_FLAG_HORIZONTAL; /* horizontal data */
#ifdef TT_CONFIG_OPTION_POSTSCRIPT_NAMES
- if ( psnames_error == SFNT_Err_Ok )
+ if ( psnames_error == SFNT_Err_Ok &&
+ face->postscript.FormatType != 0x00030000L )
flags |= FT_FACE_FLAG_GLYPH_NAMES;
#endif