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 2020-09-29 09:03:58 +02:00 committed by Nick Hall
parent ca0e77d1f4
commit 2b033dfaff

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():