diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2023-05-16 16:58:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-16 16:58:17 +0200 |
| commit | 1193b4f2062d2bc4114fefe29992553c59200090 (patch) | |
| tree | 5f43833eed5facdf9ec35d0b755a6fe492b9bfa2 /lib/lettering/font.py | |
| parent | 02738ec46e333a53c9970fd936340e88f6108ffb (diff) | |
| parent | 66068208e87f5464fa6b8038b74fe95de6b21bb9 (diff) | |
Merge pull request #2284 from inkstitch/kaalleen/various-fixes
Diffstat (limited to 'lib/lettering/font.py')
| -rw-r--r-- | lib/lettering/font.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/lettering/font.py b/lib/lettering/font.py index f5517797..77f17e7f 100644 --- a/lib/lettering/font.py +++ b/lib/lettering/font.py @@ -182,7 +182,10 @@ class Font(object): return self.name + '*' def is_custom_font(self): - return get_custom_font_dir() in self.path + custom_dir = get_custom_font_dir() + if not custom_dir: + return False + return custom_dir in self.path def render_text(self, text, destination_group, variant=None, back_and_forth=True, trim_option=0, use_trim_symbols=False): |
