From ab7ff46b9117d5b0ce890302ffdb77caacf9570e Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sun, 3 Aug 2025 10:01:48 +0200 Subject: "Add" overwrites presets (#3896) * style * param presets: to not overwrite on add when name exists --- lib/lettering/font_info.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/lettering') 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}' -- cgit v1.2.3