summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2020-05-15 14:21:20 +0200
committerGitHub <noreply@github.com>2020-05-15 14:21:20 +0200
commit2df11b5ac5586f2ad50cf4ba40727b5e7f68f213 (patch)
tree6365c6825dd6fea066481f10931a80dca30fff75 /lib
parent2aebae6826de7e4504a4719d64b6075f4dfdb34f (diff)
Add Fonts (#683)
* add geneva fonts * add dejavu font * adjust stroke-width
Diffstat (limited to 'lib')
-rw-r--r--lib/lettering/font.py6
1 files changed, 6 insertions, 0 deletions
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