ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* path in LuaMetaFun
@ 2021-02-20 11:59 Pablo Rodriguez
  2021-02-20 12:19 ` Pablo Rodriguez
  0 siblings, 1 reply; 5+ messages in thread
From: Pablo Rodriguez @ 2021-02-20 11:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

I have the fowllowing sample:

 \starttext
 \startmakeup[page][align=middle]
 \startMPcode{doublefun}
  draw lmt_followtext [
  text = "\feature[+][smallcaps]\bf\samplefile{zapf} ",
  path = ((0,0)..(3,3.25)..(9,-3.25)..(12,0)..(9,3.25)..(3,-3.25)..(0,0)),
  autoscaleup = "max",
  reverse=true,
 ] xsized .75TextWidth ;
 \stopMPcode
 \startMPcode{doublefun}
  draw lmt_followtext [
  text = "\feature[+][smallcaps]\bf\samplefile{zapf} ",
  path = ((0,0)..(3,3.25)..(9,-3.25)..(12,0)..(9,3.25)..(3,-3.25)..cycle),
  autoscaleup = "max",
  reverse=true,
 ] xsized .75TextWidth ;
 \stopMPcode
 \stopmakeup
 \stoptext

I’m afraid I don’t understand how to close the path. Cycle has problems
with part of the text and returning to the start seems to distort the
path itself.

Which is the right way to close the path or what am I missing?

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-02-21 14:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-20 11:59 path in LuaMetaFun Pablo Rodriguez
2021-02-20 12:19 ` Pablo Rodriguez
2021-02-20 12:28   ` Hans Hagen
2021-02-20 18:04     ` Pablo Rodriguez
2021-02-21 14:08       ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).