From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/10084 Path: main.gmane.org!not-for-mail From: Michael Na Li Newsgroups: gmane.comp.tex.context Subject: how to use system fonts? Date: Mon, 09 Dec 2002 12:40:38 -0800 Sender: ntg-context-admin@ntg.nl Message-ID: <8765u37wop.fsf@qiuranke.phony.washington.edu> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1039466563 7359 80.91.224.249 (9 Dec 2002 20:42:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 9 Dec 2002 20:42:43 +0000 (UTC) Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18LUjh-0001uU-00 for ; Mon, 09 Dec 2002 21:42:41 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id B8DC210AE8; Mon, 9 Dec 2002 21:42:49 +0100 (MET) Original-Received: from mxout3.cac.washington.edu (mxout3.cac.washington.edu [140.142.32.166]) by ref.ntg.nl (Postfix) with ESMTP id AC83E10AE7 for ; Mon, 9 Dec 2002 21:41:04 +0100 (MET) Original-Received: from mailscan-out1.cac.washington.edu (mailscan-out1.cac.washington.edu [140.142.32.138]) by mxout3.cac.washington.edu (8.12.1+UW01.12/8.12.1+UW02.11) with SMTP id gB9Ket9r012847 for ; Mon, 9 Dec 2002 12:41:00 -0800 Original-Received: FROM smtp.washington.edu BY mailscan-out1.cac.washington.edu ; Mon Dec 09 12:40:54 2002 -0800 Original-Received: from qiuranke.phony.washington.edu.u.washington.edu (D-128-208-50-152.dhcp4.washington.edu [128.208.50.152]) by smtp.washington.edu (8.12.1+UW01.12/8.12.1+UW02.11) with ESMTP id gB9KesmX011084 for ; Mon, 9 Dec 2002 12:40:54 -0800 Original-To: ntg-context@ntg.nl Original-Lines: 64 User-Agent: Emacs Gnus Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:10084 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:10084 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 ---------------------------------------------------------------------------