17 mars 2020 kl. 16:58 skrev Taco Hoekwater <taco@elvenkind.com>:On 17 Mar 2020, at 15:51, Jan-Erik Hägglöf <janerik.hagglof@bahnhof.se> wrote:
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
That one is because lmt_svg does not properly consider theorient=“auto"
in the marker definition. I played with setting it to actual angles,
and then the output is ok.and is very tiny compared to the size it was meant to have.
The path in the marker has its own transform, and that seems to be
ignored by lmt_svg. (I do not see how a scale of (-1.1,-1.1) would
make it that much bigger, but I know that manually altering the values
does nothing, so I guess that must be it).
No solution, but I hope this helps Hans somewhat...
Best wishes,
Taco
___________________________________________________________________________________
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
___________________________________________________________________________________