Skip to content

SVG Units #71

Answered by cduck
lythhh asked this question in Q&A
Apr 9, 2022 · 1 comment
Discussion options

You must be logged in to vote

SVGs are "scalable" so the units can mean whatever you like. The printed or displayed length of the drawing unit is determined by how the graphic is printed or displayed.

Read this for more background. Note: drawSvg does not currently support units in width and height as described in that document. You could overwrite

d = draw.Drawing(...)
d.width = "100mm"
d.height = ...
d.viewport = ...

for example but this is not supported and may change or break in future versions.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cduck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #70 on April 09, 2022 10:25.