On 12/24/2020 12:46 AM, Otared Kavian wrote:
Hi Garulfo,
Thank you for sharing your nice example: it typesets correctly with mkiv, but
it seems to me that with LMTX the text does not appear (at least on my
installation of the latest LMTX).
I admit that I had to trial and error this:
\startMPpage
picture tt ; tt := lmt_outline [
kind = "fillup",
text = "\strut foo f o o",
drawcolor = "white",
rulethickness = .2
] ysized 5cm ;
path bb ; bb := boundingbox tt;
path pp ; pp := bb enlarged 3cm ;
fill pp
withshademethod "linear"
withshadedirection down
withshadecolors (red, blue)
;
fill bb withcolor "darkgray" ;
for i within tt :
if stroked i :
nofill (pathpart i)
;
fi ;
dofill bb
withshademethod "linear"
withshadedirection down
withshadecolors (red, blue)
;
endfor ;
\stopMPpage
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________