diff options
| author | LaureFR38 <63351363+LaureFR38@users.noreply.github.com> | 2021-02-04 16:40:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-04 16:40:02 +0100 |
| commit | 1cb501986f9c1135c861472366737563ebe79681 (patch) | |
| tree | 00f62bc52928e48100b9b5dab2384d09aedf4034 /lib/lettering/font_variant.py | |
| parent | dac312f01fe83f6ade1b0b1845c92106587ff89e (diff) | |
Update font.py (#848)
* Add new fonts
* Update old fonts
* Update lettering gui
Co-authored-by: Lex Neva
Co-authored-by: kalleen
Diffstat (limited to 'lib/lettering/font_variant.py')
| -rw-r--r-- | lib/lettering/font_variant.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/lettering/font_variant.py b/lib/lettering/font_variant.py index d826dca6..7c9fa1c0 100644 --- a/lib/lettering/font_variant.py +++ b/lib/lettering/font_variant.py @@ -1,6 +1,7 @@ # -*- coding: UTF-8 -*- import os + import inkex import simplestyle @@ -45,6 +46,10 @@ class FontVariant(object): return None def __init__(self, font_path, variant, default_glyph=None): + # If the font variant file does not exist, this constructor will + # raise an exception. The caller should catch it and decide + # what to do. + self.path = font_path self.variant = variant self.default_glyph = default_glyph |
