![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
On 4/8/2024 8:22 AM, seyal zavira wrote:
thank you Harban and Keith McKay.
\startMPpage picture tt ; tt := lmt_outline [ kind = "path", text = "\definedfont[name:texgyrepagellabold*default]foo f o o", ] ;
fill for i within tt : pathpart i && endfor cycle withshademethod "linear" withshadedirection down withshadecolors (red, blue) ; \stopMPpage
I'll add this:
\startMPpage draw lmt_outline [ kind = "outline", text = "\definedfont[name:texgyrepagellabold*default]foo f o o", ] withshademethod "linear" withshadedirection down withshadecolors (red, blue) ; \stopMPpage
so a single path option (no picture)
Hans
Thank you so much for the sample examples it would be great to also make text select able in output pdf the third example currently does not work. did you mean you will add this feature for next updates? we're talking outlines so that is paths which implies no search but you can do this (Keith and/or Hraban will explain and/or wikify it)
\starttext \startbuffer[MyText] \definedfont[name:texgyrepagellabold*default]foo f o o% \stopbuffer \startbuffer[MyText] \framed[align=normal,frame=off]{\input{tufte}}% \stopbuffer \setbox\scratchbox\hbox\bgroup \startMPcode draw lmt_outline [ kind = "outline", text = "\getbuffer[MyText]", ] withshademethod "linear" withshadedirection down withshadecolors (red, blue) ; \stopMPcode \egroup \startoverlay {\scale[height=\htdp\scratchbox,width=\wd\scratchbox]{\effect[hidden]{\getbuffer[MyText]}}} {\box\scratchbox} \stopoverlay \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------