update lettering stroke-width settings (#1466)

pull/1471/head
Kaalleen 2021-12-04 11:06:10 +01:00 zatwierdzone przez GitHub
rodzic 7f7f1781c5
commit df288e57b6
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 7 dodań i 12 usunięć

Wyświetl plik

@ -208,20 +208,15 @@ class Font(object):
# make sure font stroke styles have always a similar look # make sure font stroke styles have always a similar look
for element in destination_group.iterdescendants(SVG_PATH_TAG): for element in destination_group.iterdescendants(SVG_PATH_TAG):
dash_array = "" style = inkex.Style(element.get('style'))
stroke_width = ""
style = inkex.styles.Style(element.get('style'))
if style.get('fill') == 'none': if style.get('fill') == 'none':
stroke_width = ";stroke-width:1px" style += inkex.Style("stroke-width:1px")
if style.get('stroke-width'):
style.pop('stroke-width')
if style.get('stroke-dasharray') and style.get('stroke-dasharray') != 'none': if style.get('stroke-dasharray') and style.get('stroke-dasharray') != 'none':
stroke_width = ";stroke-width:0.5px" style += inkex.Style("stroke-dasharray:3, 1")
dash_array = ";stroke-dasharray:3, 1" # Set a smaller width to auto-route running stitches
if self.auto_satin or element.get_id().startswith("autosatinrun"):
element.set('style', '%s%s%s' % (style.to_str(), stroke_width, dash_array)) style += inkex.Style("stroke-width:0.5px")
element.set('style', '%s' % style.to_str())
self._ensure_command_symbols(destination_group) self._ensure_command_symbols(destination_group)