ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* MetaFun and different body font size
@ 2007-08-20  9:36 Oliver Buerschaper
  2007-08-20  9:58 ` Peter Rolf
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Oliver Buerschaper @ 2007-08-20  9:36 UTC (permalink / raw)
  To: mailing ConTeXt users list for

Dear folks,

I'm wondering how to communicate a different default bodyfont size to  
MetaFun ... consider this:

---

\setupbodyfont[32pt]


\starttext

\input ward

\startuseMPgraphic{test}
	draw unitsquare scaled BodyFontSize;
	draw textext.rt("Test");
	draw btex \TeX etex xshifted 2*BodyFontSize;
\stopuseMPgraphic
\useMPgraphic{test}

\stoptext

---

Somehow MetaFun doesn't recognize the larger body font size :-( What  
can I do?

Oliver 
___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: MetaFun and different body font size
  2007-08-20  9:36 MetaFun and different body font size Oliver Buerschaper
@ 2007-08-20  9:58 ` Peter Rolf
  2007-08-20 10:13 ` Oliver Buerschaper
  2007-08-20 23:17 ` Mojca Miklavec
  2 siblings, 0 replies; 6+ messages in thread
From: Peter Rolf @ 2007-08-20  9:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Oliver Buerschaper schrieb:
> Dear folks,
> 
> I'm wondering how to communicate a different default bodyfont size to  
> MetaFun ... consider this:
> 
> ---
> 
> \setupbodyfont[32pt]
> 
> 
> \starttext
> 
> \input ward
> 
> \startuseMPgraphic{test}
> 	draw unitsquare scaled BodyFontSize;
> 	draw textext.rt("Test");
> 	draw btex \TeX etex xshifted 2*BodyFontSize;
> \stopuseMPgraphic
> \useMPgraphic{test}
> 
> \stoptext
> 
> ---
> 
> Somehow MetaFun doesn't recognize the larger body font size :-( What  
> can I do?
>
Hi Oliver,

see

http://wiki.contextgarden.net/Mpgraphic#.5CstartMPenvironment

You can use one of the options [global|+|reset].

'global' and '+' are also setting the env in the main doc (one font def
for all), 'reset' brings the environment back to it's defaults (s.
meta-ini.tex).


Best wishes, Peter


> Oliver 
> ___________________________________________________________________________________
> 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://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
> 

___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: MetaFun and different body font size
  2007-08-20  9:36 MetaFun and different body font size Oliver Buerschaper
  2007-08-20  9:58 ` Peter Rolf
@ 2007-08-20 10:13 ` Oliver Buerschaper
  2007-08-20 11:06   ` Wolfgang Schuster
  2007-08-20 23:17 ` Mojca Miklavec
  2 siblings, 1 reply; 6+ messages in thread
From: Oliver Buerschaper @ 2007-08-20 10:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

> Somehow MetaFun doesn't recognize the larger body font size :-(

By the way, font face changes aren't reflected either ...

---

\usetypescript[palatino][\defaultencoding]

\setupbodyfont[palatino,32pt]


\starttext

\input ward

\startuseMPgraphic{test}
	draw unitsquare scaled BodyFontSize;
	draw textext.rt("Test");
	draw btex \TeX etex xshifted 2*BodyFontSize;
\stopuseMPgraphic
\useMPgraphic{test}

\stoptext
___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: MetaFun and different body font size
  2007-08-20 10:13 ` Oliver Buerschaper
@ 2007-08-20 11:06   ` Wolfgang Schuster
  2007-08-20 16:12     ` Oliver Buerschaper
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2007-08-20 11:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2007/8/20, Oliver Buerschaper <oliver.buerschaper@mpq.mpg.de>:
> > Somehow MetaFun doesn't recognize the larger body font size :-(
>
> By the way, font face changes aren't reflected either ...
>
> ---
>
> \usetypescript[palatino][\defaultencoding]
>
> \setupbodyfont[palatino,32pt]
>
>
> \starttext
>
> \input ward
>
> \startuseMPgraphic{test}
>         draw unitsquare scaled BodyFontSize;
>         draw textext.rt("Test");
>         draw btex \TeX etex xshifted 2*BodyFontSize;
> \stopuseMPgraphic
> \useMPgraphic{test}
>
> \stoptext

Did this work for you

\startMPenvironment
\usetypescript[palatino][texnansi]
\switchtobodyfont[palatino,20pt]
\stopMPenvironment

\usetypescript[palatino][texnansi]
\setupbodyfont[palatino,20pt]

\starttext
Text

\startuseMPgraphic
label("Text",origin) ;
\stopuseMPgraphic
\useMPgraphic
\stoptext

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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: MetaFun and different body font size
  2007-08-20 11:06   ` Wolfgang Schuster
@ 2007-08-20 16:12     ` Oliver Buerschaper
  0 siblings, 0 replies; 6+ messages in thread
From: Oliver Buerschaper @ 2007-08-20 16:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Perfectly!

Thanks to both of you.

Oliver



> Did this work for you
>
> \startMPenvironment
> \usetypescript[palatino][texnansi]
> \switchtobodyfont[palatino,20pt]
> \stopMPenvironment
>
> \usetypescript[palatino][texnansi]
> \setupbodyfont[palatino,20pt]
>
> \starttext
> Text
>
> \startuseMPgraphic
> label("Text",origin) ;
> \stopuseMPgraphic
> \useMPgraphic
> \stoptext
___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: MetaFun and different body font size
  2007-08-20  9:36 MetaFun and different body font size Oliver Buerschaper
  2007-08-20  9:58 ` Peter Rolf
  2007-08-20 10:13 ` Oliver Buerschaper
@ 2007-08-20 23:17 ` Mojca Miklavec
  2 siblings, 0 replies; 6+ messages in thread
From: Mojca Miklavec @ 2007-08-20 23:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 8/20/07, Oliver Buerschaper wrote:
> Dear folks,
>
> I'm wondering how to communicate a different default bodyfont size to
> MetaFun ... consider this:
>
> ---
>
> \setupbodyfont[32pt]
>
>
> \starttext
>
> \input ward
>
> \startuseMPgraphic{test}
>         draw unitsquare scaled BodyFontSize;
>         draw textext.rt("Test");
>         draw btex \TeX etex xshifted 2*BodyFontSize;
> \stopuseMPgraphic
> \useMPgraphic{test}
>
> \stoptext
>
> ---
>
> Somehow MetaFun doesn't recognize the larger body font size :-( What
> can I do?

There's one solutions which is far better & faster & more efficient &
more obedient: use \sometxt instead of btex ... etex and/or instead of
textext("..."):

\startuseMPgraphic{test}
       draw unitsquare scaled BodyFontSize;
       label.rt(\sometxt{Test}, origin);
       draw \sometxt{\TeX} xshifted 2*BodyFontSize;
\stopuseMPgraphic
\useMPgraphic{test}

See http://dl.contextgarden.net/myway/sometxt.pdf

Mojca
___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-08-20 23:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-20  9:36 MetaFun and different body font size Oliver Buerschaper
2007-08-20  9:58 ` Peter Rolf
2007-08-20 10:13 ` Oliver Buerschaper
2007-08-20 11:06   ` Wolfgang Schuster
2007-08-20 16:12     ` Oliver Buerschaper
2007-08-20 23:17 ` Mojca Miklavec

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).