Re: [NTG-context] outlined font using MetaFun

2019-02-08 Thread Wolfgang Schuster

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
___


[NTG-context] outlined font using MetaFun

2019-02-08 Thread Jeong Dal
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
___