Do not round rotation in SVG

When making >8 generation fan charts, the rounding of rotation becomes visible. SVG does not force rotation to be integers, so better not round this.
This commit is contained in:
Tammo Jan Dijkema authored and Nick Hall committed 2022-03-05 22:17:00 +00:00
1 parent ca0e77d1f4
commit 2b033dfaff
1 file changed
+2 -1
+2 -1
View File
@@ -128,7 +128,8 @@ class SvgDrawDoc(BaseDoc, DrawDoc):
self.buffer.write(
'<text ' +
'x="%4.2f" y="%4.2f" ' % (xpos, ypos) +
'transform="rotate(%d %4.2f %4.2f)" ' % (angle, centerx, centery) +
'transform="rotate(%4.2f %4.2f %4.2f)" ' % (angle, centerx,
centery) +
'style="fill:#%02x%02x%02x; '% font.get_color()
)
if font.get_bold():