fixed S19 icons

This commit is contained in:
2024-04-10 19:21:51 +02:00
parent a15ccf414f
commit 39dfc1ed28
3 changed files with 12 additions and 2 deletions

View File

@@ -41,6 +41,16 @@ def convert_svg(sn_svg):
x = float(digit.group(1))
x -= WIDTH
path = path[:pos[0]+1] + str(x) + path[pos[0] + len(digit.group(1)):]
digits = list(re.finditer("A(.*? .*? .*? .*? .*? \d+(\.\d+)?)", path))[::-1]
for digit in digits:
pos = digit.span()
s, d = digit.group(1).rsplit(" ", 1)
x = float(d)
x -= WIDTH
d = s + " " + str(x)
path = path[:pos[0]+1] + d + path[pos[0] + len(digit.group(1)):]
path = S + "Z" + path
sn_svg = sn_svg[:path_pos[0]] + path + sn_svg[path_pos[1]:]