summaryrefslogtreecommitdiff
path: root/lib/lettering/font.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lettering/font.py')
-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