From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Otared Kavian <otared@gmail.com>
Subject: Re: MetaFun - "remove the paths of text" from a rectangle to let the background visible
Date: Thu, 24 Dec 2020 01:42:08 +0100 [thread overview]
Message-ID: <d1d74bef-c995-b222-4c6d-fd71c10e028f@xs4all.nl> (raw)
In-Reply-To: <F858091B-A770-49AD-A346-6B52B348E50E@gmail.com>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2020-12-24 0:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-21 15:09 Garulfo
2020-12-21 15:29 ` Taco Hoekwater
2020-12-23 23:14 ` Garulfo
2020-12-23 23:46 ` Otared Kavian
2020-12-24 0:42 ` Hans Hagen [this message]
2020-12-23 23:58 ` Hans Hagen
2020-12-24 9:02 ` Taco Hoekwater
2020-12-24 17:04 ` Garulfo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d1d74bef-c995-b222-4c6d-fd71c10e028f@xs4all.nl \
--to=j.hagen@xs4all.nl \
--cc=ntg-context@ntg.nl \
--cc=otared@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).