summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2018-09-01 08:00:46 +0300
committerRasmus Andersson <rasmus@notion.se>2018-09-01 08:00:46 +0300
commitb46833193982afb2c32d52c7689590ed559e17a8 (patch)
treee41d977a7b2aa6b983df0dcb0f9f7dbcfd490fc7 /misc
parentdce366825ecd8ed14f0306d55d01ff3e41745858 (diff)
downloadinter-b46833193982afb2c32d52c7689590ed559e17a8.tar.xz
fontinfo
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/fontinfo.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/fontinfo.py b/misc/fontinfo.py
index 9d0eb3fb0..0f406a14d 100755
--- a/misc/fontinfo.py
+++ b/misc/fontinfo.py
@@ -215,7 +215,6 @@ def genGlyphsInfo(tt, outputType, glyphsType=GLYPHS_TYPE_UNKNOWN, glyphsTable=No
unicodeMap[glyphname] = [cp]
glyphValues = []
- glyphset = tt.getGlyphSet(preferCFF=glyphsType is GLYPHS_TYPE_CFF)
glyphnames = tt.getGlyphOrder() if glyphnameFilter is None else glyphnameFilter
@@ -228,6 +227,8 @@ def genGlyphsInfo(tt, outputType, glyphsType=GLYPHS_TYPE_UNKNOWN, glyphsTable=No
glyphValues.append(v)
return glyphValues
+ glyphset = tt.getGlyphSet(preferCFF=glyphsType is GLYPHS_TYPE_CFF)
+
for glyphname in glyphnames:
unicodes = unicodeMap[glyphname] if glyphname in unicodeMap else []
try: