Dimensioned SVG drawings
Mojca Miklavec <[email protected]> Sat, 5 Apr 2025 22:46:39 +0200
| Newsgroups | gmane.comp.tex.metapost |
|---|---|
| Message-ID | <CALBOmsaEs0sJAMbWvXi0bqFzq1bNzc3KjK73tPWPSgCJ_aSL9A@mail.gmail.com> |
Hi,
Is it possible to output SVG images with correct size from MetaPost?
Today I wanted to use some images for a project in KiCad, only to
realize that the scaling was completely off. Or, more precisely, not
defined at all.
Apparently SVG may come in different flavours, and I imagine that some
users might want to keep the drawings "without a specified size", but
I would be really really grateful if I had a way to store the SVG in
precisely the size that was used for drawing the graphic, and without
modifying the coordinates (if coordinate system origin was in the
middle of the graphic, I want to keep it there, rather than moving it
to the top left corner of the bounding box).
(In the meantime I'll probably have to figure out how to convert PDF into SVG.)
Thanks a lot,
Mojca
--
http://tug.org/metapost/