* [MetaFun] Trying to understand outlinetext, 'stretch' effect and \kerncharacters
@ 2021-12-31 2:13 kauśika via ntg-context
2021-12-31 2:15 ` kauśika via ntg-context
2022-01-01 10:15 ` Hans Hagen via ntg-context
0 siblings, 2 replies; 4+ messages in thread
From: kauśika via ntg-context @ 2021-12-31 2:13 UTC (permalink / raw)
To: ntg-context; +Cc: kauśika
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [MetaFun] Trying to understand outlinetext, 'stretch' effect and \kerncharacters
2021-12-31 2:13 [MetaFun] Trying to understand outlinetext, 'stretch' effect and \kerncharacters kauśika via ntg-context
@ 2021-12-31 2:15 ` kauśika via ntg-context
2022-01-01 10:15 ` Hans Hagen via ntg-context
1 sibling, 0 replies; 4+ messages in thread
From: kauśika via ntg-context @ 2021-12-31 2:15 UTC (permalink / raw)
To: ntg-context; +Cc: kauśika
On Friday, December 31, 2021 7:43:21 AM IST kauśika wrote:
> 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
Please read '\setupMPtext' as '\setMPtext' in the above. Apologies for the
typos.
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [MetaFun] Trying to understand outlinetext, 'stretch' effect and \kerncharacters
2021-12-31 2:13 [MetaFun] Trying to understand outlinetext, 'stretch' effect and \kerncharacters kauśika via ntg-context
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
1 sibling, 1 reply; 4+ messages in thread
From: Hans Hagen via ntg-context @ 2022-01-01 10:15 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen
On 12/31/2021 3:13 AM, kauśika via ntg-context wrote:
> 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}
low level pdf magic ... so not done in mp
> [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}
tex magic so done in tex
> 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.
\starteffect is kind of old (comes from mkii), but you could use the
pseudo font feature effect in mkiv / lmtx which then makes a real font
instance instead of mixing in some pdf magic
Hans
-----------------------------------------------------------------
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [MetaFun] Trying to understand outlinetext, 'stretch' effect and \kerncharacters
2022-01-01 10:15 ` Hans Hagen via ntg-context
@ 2022-01-01 10:27 ` kauśika via ntg-context
0 siblings, 0 replies; 4+ messages in thread
From: kauśika via ntg-context @ 2022-01-01 10:27 UTC (permalink / raw)
To: mailing list for ConTeXt users, Hans Hagen; +Cc: kauśika
On Saturday, January 1, 2022 3:45:36 PM IST Hans Hagen wrote:
> \starteffect is kind of old (comes from mkii), but you could use the
> pseudo font feature effect in mkiv / lmtx which then makes a real font
> instance instead of mixing in some pdf magic
Thanks for the explanations Hans! Happy new year wishes to you!
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-01-01 10:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-31 2:13 [MetaFun] Trying to understand outlinetext, 'stretch' effect and \kerncharacters kauśika via ntg-context
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
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).