From: "kauśika via ntg-context" <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: kauśika <citturs@gmail.com>
Subject: [MetaFun] Trying to understand outlinetext, 'stretch' effect and \kerncharacters
Date: Fri, 31 Dec 2021 07:43:21 +0530 [thread overview]
Message-ID: <11895199.O9o76ZdvQC@sreeramtplt> (raw)
Dear list,
I have the following graphic
\startuseMPgraphic{TitleGraphic}
draw outlinetext.b (\MPstring{TitleText})
(withcolor "titlefg")
(withcolor "titleoutline");
\stopuseMPgraphic
which I tried to use as follows to produce a stylized 'title' head:
\setupMPtext{TitleText}{%
\starteffect[stretch]\bfc\namedstructurevariable{title}{title}\stopeffect}
\useMPgraphic{TitleGraphic}
[colors "titlefg" and "titleoutline" are set using \definecolor]
But, the 'stretch' effect caused by \starteffect[stretch]…\stopeffect does not
work with 'outlinetext' method in the MPgraphic. I have verified that the
desired effect is produced using 'textext' method instead. But in that case I
have to cheat (i.e draw twice; once with blownup) to get the text outline.
Now, if I write instead
\setupMPtext{TitleText}{%
\kerncharacters[0.15]\bfc\namedstructurevariable{title}{title}}
\useMPgraphic{TitleGraphic}
then the desired effect is produced. As such, my purpose is served well by
using \kerncharacters.
Nonetheless, I request your kind help in understanding why this is happening
and/or if I am doing something wrong.
Thanks,
kauśika
___________________________________________________________________________________
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 reply other threads:[~2021-12-31 2:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-31 2:13 kauśika via ntg-context [this message]
2021-12-31 2:15 ` kauśika via ntg-context
2022-01-01 10:15 ` Hans Hagen via ntg-context
2022-01-01 10:27 ` kauśika via ntg-context
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=11895199.O9o76ZdvQC@sreeramtplt \
--to=ntg-context@ntg.nl \
--cc=citturs@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).