diff options
author | Rasmus Andersson <rasmus@notion.se> | 2018-09-01 08:00:46 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2018-09-01 08:00:46 +0300 |
commit | b46833193982afb2c32d52c7689590ed559e17a8 (patch) | |
tree | e41d977a7b2aa6b983df0dcb0f9f7dbcfd490fc7 | |
parent | dce366825ecd8ed14f0306d55d01ff3e41745858 (diff) | |
download | inter-b46833193982afb2c32d52c7689590ed559e17a8.tar.xz |
fontinfo
-rwxr-xr-x | misc/fontinfo.py | 3 |
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: |