[metapost] Previewing an SVG generated by METAPOST
luigi scarso
luigi.scarso at gmail.com
Fri May 10 21:19:33 CEST 2019
Il Ven 10 Mag 2019, 21:16 Daniel H. Luecking <luecking at uark.edu> ha scritto:
>
> This is not true in MetaPost's postscript output, and the
>
> BoundingBox in EPS and SVG are the same to 5 decimals.
>
>
> It seems to me that the path definition in SVG draws the path
>
> almost a point higher than it ought to be. This is assuming
>
> that in
>
> viewBox="0 0 63.410065 91.206802"
>
> the coordinates are supposed to represent the ulcorner
>
> and lrcorner of the picture. If that is the case, the initial
>
> moveto should be 0.25 90.87 (approx.) instead of 0.0 90.0
>
> (with corresponding adjustments to other points in the path)
>
> so that the strokes (thickness and all) exactly fit in the
>
> viewBox.
>
>
> Seems like a bug to me, but I have only a vague idea of the
>
> SVG format and how it is supposed to be dislayed.
>
>
>
>
Ok I will give it a look.
--
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/metapost/attachments/20190510/08c8530e/attachment.html>
More information about the metapost
mailing list