diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2025-10-27 18:09:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-27 18:09:21 +0100 |
| commit | 6f282829537b69b8628b901cc717f18222ff33a0 (patch) | |
| tree | d703e389a395f021836816ef1e0e5fe509474fc8 /lib/lettering/utils.py | |
| parent | e8859c4e14984bcdb3dd6d3c9bfed05cd233251c (diff) | |
Lettering: add spacing options (#4020)
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 4c9822ea..6be49ffe 100644 --- a/lib/lettering/utils.py +++ b/lib/lettering/utils.py @@ -52,7 +52,7 @@ def get_font_by_id(font_id, show_font_path_warning=True): return None -def get_font_by_name(font_name): +def get_font_by_name(font_name, show_font_path_warning=True): font_paths = get_font_paths() for font_path in font_paths: try: @@ -60,7 +60,7 @@ def get_font_by_name(font_name): except OSError: continue for font_dir in font_dirs: - font = _get_font_from_path(font_path, font_dir) + font = _get_font_from_path(font_path, font_dir, show_font_path_warning) if font and font_name in [font.name, font.marked_custom_font_name]: return font return None |
