Il 17/03/20 15:51, Jan-Erik Hägglöf ha scritto:
Hi All!

When I invoke this command

\startMPcode
picture p ; p := lmt_svg [ filename ="pil.svg" ];
draw p;
\stopMPcode

I get weird results, the arrowhead points in wrong direction and is very tiny compared to the size it was meant to have.


Keep in mind this:

- SVG rendering in metapost started as an experiment and it is still under development, even if you can already do some very interesting things with it

- inkscape SVG is different from standard SVG, so the first thing you can try is saving as plain SVG

- markers are borderline elements, even Inkscape did not support them well for a long time; i.e. i noticed a strange behavior in rectangles with slightly rounded corners

- in general, try using the simplest elements: i.e. transform rectangles, ellipses, markers?, etc. into paths

- you could experience problems also with text, especially with less common or uninstalled fonts

Best wishes,
Massi
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to