summaryrefslogtreecommitdiff
path: root/lib/lettering/utils.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-10-27 18:09:21 +0100
committerGitHub <noreply@github.com>2025-10-27 18:09:21 +0100
commit6f282829537b69b8628b901cc717f18222ff33a0 (patch)
treed703e389a395f021836816ef1e0e5fe509474fc8 /lib/lettering/utils.py
parente8859c4e14984bcdb3dd6d3c9bfed05cd233251c (diff)
Lettering: add spacing options (#4020)
Diffstat (limited to 'lib/lettering/utils.py')
-rw-r--r--lib/lettering/utils.py4
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