Commit b9561b78c3576008f0106a4e4df8dc1296b5f3ab

Tom Kacvinsky 2001-03-16T13:40:50

In function CFF_Init_Face(), logical or the face flags with FT_FACE_FLAG_GLYPH_NAMES only if FT_CONFIG_OPTION_NO_GLYPH_NAMES is not defined. This is to add support for getting a glyph name from a glyph index vi FT_Get_Glyph_Name().

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/cff/cffobjs.c b/src/cff/cffobjs.c
index f63ac53..8a86b7e 100644
--- a/src/cff/cffobjs.c
+++ b/src/cff/cffobjs.c
@@ -427,6 +427,10 @@
           flags |= FT_FACE_FLAG_KERNING;
 #endif
 
+#ifndef FT_CONFIG_OPTION_NO_GLYPH_NAMES
+        flags |= FT_FACE_FLAG_GLYPH_NAMES;
+#endif
+
         root->face_flags = flags;
 
         /*******************************************************************/