diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2025-05-09 22:39:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-09 22:39:57 +0200 |
| commit | 64dbac45a1b93209f8c0985cae2bfefb4c1c733f (patch) | |
| tree | b304c6c041311cfe9876941f0eb1f37eaa6e2624 /lib/lettering/utils.py | |
| parent | d41b99dba886d4b5974dde2f5dadf17647b659ff (diff) | |
Lettering along path: fix multipart glyphs and rtl (#3709)
* lettering along path: fix multipart glyphs and rtl
* improve handling of multiline text
Diffstat (limited to 'lib/lettering/utils.py')
| -rw-r--r-- | lib/lettering/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lettering/utils.py b/lib/lettering/utils.py index bd7a208d..9641e0a4 100644 --- a/lib/lettering/utils.py +++ b/lib/lettering/utils.py @@ -47,7 +47,7 @@ def get_font_by_id(font_id): continue for font_dir in font_dirs: font = _get_font_from_path(font_path, font_dir) - if font and font.id == font_id: + if font and font_id in [font.id, font.marked_custom_font_id]: return font return None @@ -61,7 +61,7 @@ def get_font_by_name(font_name): continue for font_dir in font_dirs: font = _get_font_from_path(font_path, font_dir) - if font and font.name == font_name: + if font and font_name in [font.name, font.marked_custom_font_name]: return font return None |
