![](https://secure.gravatar.com/avatar/c4d99f671aaf6804c8b70aedbc1add78.jpg?s=120&d=mm&r=g)
I've found my original file and the image is as Hraban says below. The code is the original in the post I quoted and gives a green background with shaded colours in the text. Best Wishes Keith On 07/04/2024 18:42, 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?
Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________