[NTG-context] path in LuaMetaFun

Pablo Rodriguez oinos at gmx.es
Sat Feb 20 12:59:26 CET 2021


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


More information about the ntg-context mailing list