Also scale line width

This in practise only affects PostScript and derived formats - basically
everything except SVG
This commit is contained in:
Florian Festi 2020-11-19 23:23:39 +01:00
parent 0cf57df694
commit 8613c64b32
1 changed files with 2 additions and 2 deletions

View File

@ -553,7 +553,7 @@ Creation date: {date}
p.pop()
if p: # might be empty if only contains text
t = ET.SubElement(g, "path", d=" ".join(p), stroke=color)
t.set("stroke-width", f'{path.params["lw"]:.2f}')
t.set("stroke-width", f'{path.params["lw"]*self.scale:.2f}')
t.tail = "\n "
t.tail = "\n"
tree.write(open(self._fname, "wb"), xml_declaration=True, method="xml")
@ -674,7 +674,7 @@ class PSSurface(Surface):
f.write("newpath\n")
f.write("\n".join(p))
f.write("\n")
f.write(f"{path.params['lw']} setlinewidth\n")
f.write(f"{path.params['lw']*self.scale} setlinewidth\n")
f.write(f"{color} setrgbcolor\n")
f.write("stroke\n\n")
f.write(