From: Michael Na Li <lina@u.washington.edu>
Subject: how to use system fonts?
Date: Mon, 09 Dec 2002 12:40:38 -0800 [thread overview]
Message-ID: <8765u37wop.fsf@qiuranke.phony.washington.edu> (raw)
I've read the relevant docs (mfonts.pdf, etc) but still can't figure out how
to switch fonts in context.
In LaTeX, I just use \usepackage{times} or \usepackage{utopia} to switch fonts
(just the basic ones came with tetex). I expect something similar in ConTeXt
but that is not the case.
This compiles but doesn't have any effect on fonts, (unknown variant times and
utopia).
\setupbodyfont[times]
\starttext
This is roman, {\bf bold}, {\it italic}, {\bi bold-italic},
{\tfa bigger} and {\tfx smaller}.
\switchtobodyfont[utopia]
This is roman, {\bf bold}, {\it italic}, {\bi bold-italic},
{\tfa bigger} and {\tfx smaller}.
\stoptext
If I follow the instruction on
http://home.salamander.com/~wmcclain/context-help.html
and I can create some type-x.tex file for the fonts, like
\usetypescriptfile[type-charter]
\usetypescriptfile[type-utopia]
\usetypescript[Charter]
\usetypescript[Utopia]
\setupbodyfont[MyCharter]
\starttext
This is roman, {\bf bold}, {\it italic}, {\bi bold-italic},
{\tfa bigger} and {\tfx smaller}.
\switchtobodyfont[MyUtopia]
This is roman, {\bf bold}, {\it italic}, {\bi bold-italic},
{\tfa bigger} and {\tfx smaller}.
\stoptext
But shouldn't those typescripts be already set up? I'm not installing new
fonts here. I can see the names 'times', 'helvet', 'palatino' etc in the
system type-*.tex file and those files are read during the compilation. How
can I use them?
I have
\usetypescript [map] [default,\defaultencoding]
\usetypescript [berry] [\defaultencoding]
in my $TEXMF/tex/context/user/cont-sys.tex file.
Thanks,
Michael
--
----------------------------------------------------------------------------
Michael Na Li
Email: lina@u.washington.edu
Department of Biostatistics, Box 357232
University of Washington, Seattle, WA 98195
---------------------------------------------------------------------------
reply other threads:[~2002-12-09 20:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=8765u37wop.fsf@qiuranke.phony.washington.edu \
--to=lina@u.washington.edu \
--cc=ntg-context@ntg.nl \
/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).