ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* MetaPost and fonts
@ 2002-09-26 11:01 Jens-Uwe Morawski
  2002-09-26 14:53 ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Jens-Uwe Morawski @ 2002-09-26 11:01 UTC (permalink / raw)


Ahoi,

in a document i use the following font-setup:
\enableregime[il1]
\usetypescriptfile[ts-larabie]
\definetypeface[BlueHighway][ss][sans][BlueHighway][default]
	[rscale=1.3,encoding=ec]
\setupencoding[default=ec]
\setupbodyfont[BlueHighway,ss,10pt]

\usetypescriptfile[ts-misc-ttf]
\definetypeface[Binky][rm][serif][Binky][default][encoding=texnansi]

In the normal text now the default-font is BlueHighway and i can
switch temporally to Binky using {\Binky <some text>}.

Using the above font-setup in \start|\stopMPenvironment sets
correctly the body-font, but a

label(btex some {\Binky important} words etex,origin)

fails, since the command \Binky is unknown.

In contrast the following stand-alone MP-file works.
(You have to setup MetaPost so that it uses texexec for processing
  the generated mpxerr.tex (mpost --tex=texexec or env-var TEX=texexec))

%--snip---
input metafun ;

verbatimtex
\usetypescriptfile[ts-larabie]
\definetypeface[BlueHighway][ss][sans][BlueHighway][default]
	[rscale=1.3,encoding=ec]
\setupencoding[default=ec]
\enableregime[il1]
\setupbodyfont[BlueHighway,ss,10pt]

\usetypescriptfile[ts-misc-ttf]
\definetypeface[Binky][rm][serif][Binky][default][encoding=texnansi]
\starttext
etex

beginfig(1);
label.top(btex Some text in BlueHighway (default). etex, origin) ;
label.bot(btex \Binky  Some text in Binky etex, origin);
endfig;

verbatimtex
\stoptext
etex
end
%---snap----

I thought that ConTeXt generates a file like this to process
the inline MetaPost code, but it seems that i do not understand
the ConTeXt-MP-processing. 

What can i do to have the full typesetting/font-setup capabilities
also available in MetaPost?

Thanks in advance.

Jens


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

end of thread, other threads:[~2002-10-07 12:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-26 11:01 MetaPost and fonts Jens-Uwe Morawski
2002-09-26 14:53 ` Hans Hagen
2002-09-26 19:15   ` Jens-Uwe Morawski
2002-09-27  6:48     ` Hans Hagen
2002-09-27 10:37       ` Jens-Uwe Morawski
2002-10-02 17:52       ` Jens-Uwe Morawski
2002-10-04  7:30         ` Hans Hagen
2002-10-07 12:31           ` Jens-Uwe Morawski

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