From 1cb501986f9c1135c861472366737563ebe79681 Mon Sep 17 00:00:00 2001 From: LaureFR38 <63351363+LaureFR38@users.noreply.github.com> Date: Thu, 4 Feb 2021 16:40:02 +0100 Subject: Update font.py (#848) * Add new fonts * Update old fonts * Update lettering gui Co-authored-by: Lex Neva Co-authored-by: kalleen --- lib/lettering/font_variant.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/lettering/font_variant.py') 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 -- cgit v1.2.3