summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaalleen <reni@allenka.de>2023-05-10 16:35:37 +0200
committerKaalleen <reni@allenka.de>2023-05-10 16:35:37 +0200
commit0f78733c4b2da2dbb138452f63759f6d3272d56a (patch)
treedbc07f0a0f5f9da9d3c96b002eb8d31b383c8622
parent573abab9e7fde4c863ee37a5b7e7d5fbcc540c34 (diff)
fix macos issue with no custom font dir
-rw-r--r--lib/lettering/font.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/lettering/font.py b/lib/lettering/font.py
index f5517797..c4c16729 100644
--- a/lib/lettering/font.py
+++ b/lib/lettering/font.py
@@ -182,6 +182,9 @@ class Font(object):
return self.name + '*'
def is_custom_font(self):
+ custom_dir = get_custom_font_dir()
+ if not custom_dir:
+ return False
return get_custom_font_dir() in self.path
def render_text(self, text, destination_group, variant=None, back_and_forth=True, trim_option=0, use_trim_symbols=False):