File tree 2 files changed +8
-3
lines changed 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 100
100
# mypy
101
101
.mypy_cache /
102
102
103
- * .ttf
103
+ * .ttf
104
+ out /
Original file line number Diff line number Diff line change 18
18
from PyQt5 .QtCore import Qt
19
19
from PyQt5 .QtGui import QIntValidator
20
20
21
+ useUnichr = True
22
+ if not useUnichr :
23
+ unichr = str
24
+
21
25
22
26
class askSetting (QDialog ):
23
27
@@ -165,7 +169,7 @@ def bye(self, items):
165
169
count = 0
166
170
print (u'\n Generating EPS' )
167
171
for glyph in ttfFile .selection .byGlyphs :
168
- glyph .export ("out/eps/" + str (glyph .unicode )+ ".eps" )
172
+ glyph .export ("out/eps/" + unichr (glyph .unicode )+ ".eps" )
169
173
sys .stdout .write ('.' )
170
174
sys .stdout .flush ()
171
175
count += 1
@@ -186,7 +190,7 @@ def bye(self, items):
186
190
print (u'\n Generating PNG @ ' + pngSize )
187
191
for glyph in ttfFile .selection .byGlyphs :
188
192
glyph .export ("out/png/"
189
- + str (glyph .unicode )
193
+ + unichr (glyph .unicode )
190
194
+ "."
191
195
+ pngSize
192
196
+ ".png" ,
You can’t perform that action at this time.
0 commit comments