ref: a9369f2dc96eec2f8cdb00c4bde5b452e5b462b8
parent: b5a0487cfd5e8d2f30136b3170e49bd5d79b2504
author: David Turner <[email protected]>
date: Mon Feb 7 13:58:42 EST 2000
some updates to allow the selective compilation of the adobe glyph list (this thing is huge !!)
--- a/docs/glnames.py
+++ b/docs/glnames.py
@@ -1403,18 +1403,26 @@
print ""
-def dump_glyph_list(glyph_list):
+def dump_glyph_list(glyph_list, adobe_extra):
print "static const char* standard_glyph_names[] = {"
for name in glyph_list:
- print ' "'+name+'"'+','
+ print ' "'+name+'",'
+
+ print "#ifdef FT_CONFIG_OPTION_ADOBE_GLYPH_LIST"
+ for name in adobe_extra:
+ print ' "'+name+'",'
+
+ print "#endif /* FT_CONFIG_OPTION_ADOBE_GLYPH_LIST */"
print " 0 };"
print ""
+
def dump_unicode_values(glyph_list):
"""build the glyph names to unicode values table"""
adobe_list, uni_values = the_adobe_glyphs()
index_list = []
-
+
+ print "#ifdef FT_CONFIG_OPTION_ADOBE_GLYPH_LIST"
print "static const unsigned short names_to_unicode[" + \
repr(len(glyph_list)+1) + "] = {"
@@ -1428,6 +1436,7 @@
print " 0,"
print " 0 };"
+ print "#endif /* FT_CONFIG_OPTION_ADOBE_GLYPH_LIST */"
print ""
def dump_encoding( encoding_name, encoding_list ):
@@ -1456,13 +1465,11 @@
adobe_list = count_extra_glyphs( adobe_list, glyph_list )
count_adobe = len(adobe_list)
- glyph_list = glyph_list + adobe_list
-
print "/* the following tables are generated automatically - do not edit */"
print ""
# dump glyph list
- dump_glyph_list( glyph_list )
+ dump_glyph_list( glyph_list, adobe_list )
# dump t1_standard_list
print "static const char** t1_standard_glyphs = standard_glyph_names + " + repr(t1_bias) + ";"
@@ -1469,7 +1476,11 @@
print ""
print "#define NUM_STD_GLYPHS "+repr(len(t1_standard_strings))
print ""
+ print "#ifdef FT_CONFIG_OPTION_ADOBE_GLYPH_LIST"
+ print "#define NUM_ADOBE_GLYPHS "+repr(len(glyph_list)+len(adobe_list)-t1_bias)
+ print "#else"
print "#define NUM_ADOBE_GLYPHS "+repr(len(glyph_list)-t1_bias)
+ print "#endif"
print ""
# dump mac indices table