1- #!/usr/bin/python
1+ #!/usr/bin/env python
22#
33# Copyright 2010-2012, Google Inc.
44# Author: Mikhail Kashkin ([email protected] ) @@ -117,11 +117,11 @@ def subset_font_raw(font_in, font_out, unicodes, opts):
117117 print ("Clear()" , file = pe )
118118
119119 if '--move-display' in opts :
120+ print ("Moving display glyphs into unicode ranges..." )
120121 font .familyname += " Display"
121122 font .fullname += " Display"
122123 font .fontname += "Display"
123124 font .appendSFNTName ('English (US)' , 'Family' , font .familyname )
124- font .appendSFNTName ('English (US)' , 'UniqueID' , font .familyname )
125125 font .appendSFNTName ('English (US)' , 16 , font .familyname )
126126 font .appendSFNTName ('English (US)' , 17 , 'Display' )
127127 font .appendSFNTName ('English (US)' , 'Fullname' , font .fullname )
@@ -135,17 +135,6 @@ def subset_font_raw(font_in, font_out, unicodes, opts):
135135 newgl = glname .replace ('.display' ,'' )
136136 font .selection .select (newgl )
137137 font .paste ()
138- print (font [newgl ].glyphname )
139- # print(newgl)
140- # if newgl.startswith('uni'):
141- # newgl = int(newgl[3:], base=16)
142- # else:
143- # newgl = fontforge.unicodeFromName(newgl)
144-
145- # new = font.createChar(newgl)
146- # new = font[glname]
147- # print(new)
148- # font[glname.replace('.display','')] = font[glname]
149138 font .selection .select (glname )
150139 font .cut ()
151140
0 commit comments