1
- #!/usr/bin/python
1
+ #!/usr/bin/env python
2
2
#
3
3
# Copyright 2010-2012, Google Inc.
4
4
# Author: Mikhail Kashkin (mkashkin@gmail.com)
@@ -117,11 +117,11 @@ def subset_font_raw(font_in, font_out, unicodes, opts):
117
117
print ("Clear()" , file = pe )
118
118
119
119
if '--move-display' in opts :
120
+ print ("Moving display glyphs into unicode ranges..." )
120
121
font .familyname += " Display"
121
122
font .fullname += " Display"
122
123
font .fontname += "Display"
123
124
font .appendSFNTName ('English (US)' , 'Family' , font .familyname )
124
- font .appendSFNTName ('English (US)' , 'UniqueID' , font .familyname )
125
125
font .appendSFNTName ('English (US)' , 16 , font .familyname )
126
126
font .appendSFNTName ('English (US)' , 17 , 'Display' )
127
127
font .appendSFNTName ('English (US)' , 'Fullname' , font .fullname )
@@ -135,17 +135,6 @@ def subset_font_raw(font_in, font_out, unicodes, opts):
135
135
newgl = glname .replace ('.display' ,'' )
136
136
font .selection .select (newgl )
137
137
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]
149
138
font .selection .select (glname )
150
139
font .cut ()
151
140
0 commit comments