diff options
Diffstat (limited to 'lib/lettering')
| -rw-r--r-- | lib/lettering/font_info.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/lettering/font_info.py b/lib/lettering/font_info.py index 8bf35900..4c783531 100644 --- a/lib/lettering/font_info.py +++ b/lib/lettering/font_info.py @@ -40,9 +40,12 @@ class FontFileInfo(object): hax = float(hax) glyph_name = glyph.get('glyph-name', None) + if glyph_name is not None: glyph_name = glyph_name.split('.') if len(glyph_name) == 2: + if ord(unicode_char[0]) >= 57344 : + unicode_char = glyph_name[0] typographic_feature = glyph_name[1] unicode_char += f'.{typographic_feature}' else: |
