diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2025-08-03 10:01:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-03 10:01:48 +0200 |
| commit | ab7ff46b9117d5b0ce890302ffdb77caacf9570e (patch) | |
| tree | a25a2467b3510c8f88c06027964a92a96a81c5db /lib/lettering | |
| parent | eb0e1b0c3c0dadccae10faad4240808a20e81f14 (diff) | |
"Add" overwrites presets (#3896)
* style
* param presets: to not overwrite on add when name exists
Diffstat (limited to 'lib/lettering')
| -rw-r--r-- | lib/lettering/font_info.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lettering/font_info.py b/lib/lettering/font_info.py index 4c783531..e648d60d 100644 --- a/lib/lettering/font_info.py +++ b/lib/lettering/font_info.py @@ -40,11 +40,11 @@ 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 : + if ord(unicode_char[0]) >= 57344: unicode_char = glyph_name[0] typographic_feature = glyph_name[1] unicode_char += f'.{typographic_feature}' |
