From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: lmt_outline
Date: Wed, 10 Mar 2021 23:07:37 -0500 (EST) [thread overview]
Message-ID: <nycvar.YAK.7.78.908.2103102306080.395156@nqv-guvaxcnq> (raw)
In-Reply-To: <CAMHZ1daG=GEUSmFBZi6KO=MO-SfLpghsWArQs_N0kSmQmN0WYA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1130 bytes --]
On Wed, 10 Mar 2021, Mohammad Hossein Bateni wrote:
> Hello,
>
> Hans said he's in the metapost mode now :)
>
> I have used lmt_outline in the following example and it is really an
> improvement over the previous outline "effect" because one can set the
> fillcolor and drawcolor separately. (that was not possible before, right?)
>
> \starttext
> \definedfont[dejavusansmono*arabic]
> \setupalign[r2l]
> \startMPcode
> draw lmt_outline [
> text = "سلام",
> drawcolor = "red",
> fillcolor = "white",
> kind = "reverse",
> align = "r2l",
> ] scaled 3mm;
> \stopMPcode
> \stoptext
>
> 1. This works well on a plain background. I can specify the background
> color in fillcolor and get the outline effect. When the background is an
> image, this does not work too well. Can we use some clip trickery to allow
> for "transparent" fill? Ideally I want to set the fillcolor to a special
> value that would lead to only the outlines drawn.
Have you seen this example on the wiki which uses nofill:
https://wiki.contextgarden.net/Cover_Pages#Empty_or_Transparent_letters
Aditya
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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:[~2021-03-11 4:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-11 0:38 lmt_outline Mohammad Hossein Bateni
2021-03-11 4:07 ` Aditya Mahajan [this message]
2021-03-12 2:05 ` lmt_outline Mohammad Hossein Bateni
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=nycvar.YAK.7.78.908.2103102306080.395156@nqv-guvaxcnq \
--to=adityam@umich.edu \
--cc=ntg-context@ntg.nl \
/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).