On 4/7/2024 7:42 PM, Henning Hraban Ramm wrote:
Am 07.04.24 um 19:05 schrieb Hans Hagen:
\startMPpage picture tt ; tt := lmt_outline [ kind = "fillup", text = "\definedfont[name:texgyrepagellabold*default]foo f o o", ] xsized 12cm ;
path bb ; bb := boundingbox tt ; path pp ; pp := bb enlarged 2cm ;
fill pp withshademethod "linear" withshadedirection down withshadecolors (red, blue) ;
draw tt withcolor green ; \stopMPpage
no need to loop over tt
But the intention was to get a gradient _within_ the text.
Might there be a problem with the latest changes to gradients? \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 ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------