[NTG-context] Issue with rendering arrows in lmtx

Jan-Erik Hägglöf janerik.hagglof at bahnhof.se
Tue Mar 17 20:43:23 CET 2020


Ok, thanks for your advice. It seems that it is better to do framework in MetaFun and use svg picture as a component instead of opposite.

Best wishes to you all

Janne

> 17 mars 2020 kl. 16:58 skrev Taco Hoekwater <taco at elvenkind.com>:
> 
> 
> 
>> On 17 Mar 2020, at 15:51, Jan-Erik Hägglöf <janerik.hagglof at 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 the 
> 
>> orient=“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 at 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
> ___________________________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200317/c393f7c9/attachment.htm>


More information about the ntg-context mailing list