From 2df11b5ac5586f2ad50cf4ba40727b5e7f68f213 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Fri, 15 May 2020 14:21:20 +0200 Subject: Add Fonts (#683) * add geneva fonts * add dejavu font * adjust stroke-width --- lib/lettering/font.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/lettering/font.py') diff --git a/lib/lettering/font.py b/lib/lettering/font.py index 13a2b78c..e8c81019 100644 --- a/lib/lettering/font.py +++ b/lib/lettering/font.py @@ -144,6 +144,12 @@ class Font(object): if self.auto_satin and len(destination_group) > 0: self._apply_auto_satin(destination_group, trim) + else: + # set stroke width because it is almost invisible otherwise (why?) + for element in destination_group.iterdescendants(SVG_PATH_TAG): + style = ['stroke-width:1px' if s.startswith('stroke-width') else s for s in element.get('style').split(';')] + style = ';'.join(style) + element.set('style', '%s' % style) return destination_group -- cgit v1.2.3