From: Jens-Uwe Morawski <morawski@gmx.net>
Subject: MetaPost and fonts
Date: Thu, 26 Sep 2002 13:01:17 +0200 [thread overview]
Message-ID: <20020926130117.32e7c1a7.morawski@gmx.net> (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
next reply other threads:[~2002-09-26 11:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-26 11:01 Jens-Uwe Morawski [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020926130117.32e7c1a7.morawski@gmx.net \
--to=morawski@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).