From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9377 Path: main.gmane.org!not-for-mail From: Jens-Uwe Morawski Newsgroups: gmane.comp.tex.context Subject: MetaPost and fonts Date: Thu, 26 Sep 2002 13:01:17 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <20020926130117.32e7c1a7.morawski@gmx.net> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035399707 2616 80.91.224.250 (23 Oct 2002 19:01:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 19:01:47 +0000 (UTC) Original-To: ConTeXt Xref: main.gmane.org gmane.comp.tex.context:9377 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9377 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 }. 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