* outlined font using MetaFun
[not found] <mailman.1.1549623601.25537.ntg-context@ntg.nl>
@ 2019-02-08 16:18 ` Jeong Dal
2019-02-08 16:31 ` Wolfgang Schuster
0 siblings, 1 reply; 2+ messages in thread
From: Jeong Dal @ 2019-02-08 16:18 UTC (permalink / raw)
To: list ntg-context@ntg.nl ntg-context@ntg.nl ntg-context@ntg.nl
ntg-context@ntg.nl
Dear all,
The following code which is borrowed from MetaFun manual is working nicely.
%%%%%%
\setupMPvariables[outlineT][tt="Hello"]
\startuseMPgraphic{outlineT}
draw outlinetext.b (\MPvar{tt})
(withcolor .5white)
(withcolor .625blue withpen pencircle scaled .2pt)
scaled 3 ;
\stopuseMPgraphic
\starttext
\useMPgraphic{outlineT}
\stoptext
%%%%%%%%
However, the next example is not working(without \setupMPvariables[]).
%%%%%%%
\startuseMPgraphic{outlineT}{tt}
draw outlinetext.b (\MPvar{tt})
(withcolor .5white)
(withcolor .625blue withpen pencircle scaled .2pt)
scaled 3 ;
\stopuseMPgraphic
\starttext
\useMPgraphic{outlineT}{tt=“Hello”}
\stoptext
%%%%%%%%
So, the trial to use above code for chapter title as following didn’t work either.
%%%%%%%%
\startuseMPgraphic{outlineT}{tt}
string tt;
draw outlinetext.b (\MPvar{tt})
(withcolor .5white)
(withcolor .625blue withpen pencircle scaled .2pt)
scaled 3 ;
\stopuseMPgraphic
\define[1]\myTest{\useMPgraphic{outlineT}{#1}}
\setuphead[chapter]
[textcommand=\myTest,
numbercommand=\myTest,
number=yes]
\starttext
\startchapter[title={First chapter}]
Chapter
\stopchapter
\stoptext
%%%%%%%%%%%
Is there any way to make it work?
thank you.
Best regards,
Dalyoung
___________________________________________________________________________________
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] 2+ messages in thread
* Re: outlined font using MetaFun
2019-02-08 16:18 ` outlined font using MetaFun Jeong Dal
@ 2019-02-08 16:31 ` Wolfgang Schuster
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2019-02-08 16:31 UTC (permalink / raw)
To: mailing list for ConTeXt users, Jeong Dal
Jeong Dal schrieb am 08.02.19 um 17:18:
> Dear all,
>
> The following code which is borrowed from MetaFun manual is working nicely.
>
> %%%%%%
> \setupMPvariables[outlineT][tt="Hello"]
> \startuseMPgraphic{outlineT}
> draw outlinetext.b (\MPvar{tt})
> (withcolor .5white)
> (withcolor .625blue withpen pencircle scaled .2pt)
> scaled 3 ;
> \stopuseMPgraphic
>
> \starttext
> \useMPgraphic{outlineT}
> \stoptext
> %%%%%%%%
>
> However, the next example is not working(without \setupMPvariables[]).
>
> %%%%%%%
> \startuseMPgraphic{outlineT}{tt}
> draw outlinetext.b (\MPvar{tt})
> (withcolor .5white)
> (withcolor .625blue withpen pencircle scaled .2pt)
> scaled 3 ;
> \stopuseMPgraphic
>
> \starttext
> \useMPgraphic{outlineT}{tt=“Hello”}
> \stoptext
> %%%%%%%%
>
> So, the trial to use above code for chapter title as following didn’t work either.
> %%%%%%%%
> \startuseMPgraphic{outlineT}{tt}
> string tt;
> draw outlinetext.b (\MPvar{tt})
> (withcolor .5white)
> (withcolor .625blue withpen pencircle scaled .2pt)
> scaled 3 ;
> \stopuseMPgraphic
> \define[1]\myTest{\useMPgraphic{outlineT}{#1}}
>
> \setuphead[chapter]
> [textcommand=\myTest,
> numbercommand=\myTest,
> number=yes]
>
> \starttext
> \startchapter[title={First chapter}]
>
> Chapter
>
> \stopchapter
> \stoptext
> %%%%%%%%%%%
>
> Is there any way to make it work?
Drop the list with variables after \startuseMPgraphic.
Wolfgang
___________________________________________________________________________________
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] 2+ messages in thread
end of thread, other threads:[~2019-02-08 16:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <mailman.1.1549623601.25537.ntg-context@ntg.nl>
2019-02-08 16:18 ` outlined font using MetaFun Jeong Dal
2019-02-08 16:31 ` Wolfgang Schuster
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).