From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17406 Path: main.gmane.org!not-for-mail From: "Adam Lindsay" Newsgroups: gmane.comp.tex.context Subject: Re: using fonts Date: Mon, 6 Dec 2004 14:45:38 +0000 Message-ID: <20041206144538.1554@news.comp.lancs.ac.uk> References: <41B45338.80401@hoki.ibp.fhg.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1102344389 3421 80.91.229.6 (6 Dec 2004 14:46:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Dec 2004 14:46:29 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 06 15:46:17 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CbK81-0002jb-00 for ; Mon, 06 Dec 2004 15:46:17 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B359A1277C; Mon, 6 Dec 2004 15:46:15 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25468-02; Mon, 6 Dec 2004 15:46:12 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4883E1276F; Mon, 6 Dec 2004 15:46:12 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B6CB81276F for ; Mon, 6 Dec 2004 15:46:10 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25310-07 for ; Mon, 6 Dec 2004 15:46:09 +0100 (CET) Original-Received: from mail.comp.lancs.ac.uk (unknown [148.88.3.45]) by ronja.ntg.nl (Postfix) with ESMTP id 95F6C1276D for ; Mon, 6 Dec 2004 15:46:09 +0100 (CET) Original-Received: from [194.80.36.199] (localhost [127.0.0.1]) by mail.comp.lancs.ac.uk (8.12.10/8.12.10) with ESMTP id iB6EjeqG029985; Mon, 6 Dec 2004 14:45:40 GMT Original-To: "mailing list for ConTeXt users" , "Wolfgang Zillig" In-Reply-To: <41B45338.80401@hoki.ibp.fhg.de> X-Mailer: CTM PowerMail version 5.1 build 4340 English X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:17406 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17406 Wolfgang Zillig said this at Mon, 6 Dec 2004 13:40:24 +0100: >Hello, > >I think I=B4mgetting confused with all of the font selection within = context. Don't worry: it's a bit complicated at first... but it's learn-able (and easier, to my mind, than LaTeX's way of doing things!). >First: I have a miktex environment on on W2K. I don't have miktex. But I'll try to teach what I know! >1. >to change single fonts: >\definetypeface [palatino] [rm] [serif] [palatino] [default] = [encoding=3Dec] >\switchtotypeface[palatino][12pt,rm] >results in an error that the font is not found (font: uplr8t) okay, let's expand through the typescripts a bit: You invoke these typescripts through your typeface definition (primarily; there are others that automatically get triggered): [serif][palatino][name] [serif][palatino][ec] [serif][default] [size] % etc... Serif then gets mapped in type-syn: \starttypescript [serif] [palatino] [name] \definefontsynonym [Serif] [Palatino] %... Palatino then gets mapped in type-enc: \starttypescript [serif] [palatino] [texnansi,ec,8r,t5] \definefontsynonym [Palatino][\typefaceencoding- uplr8a][encoding=3D\typefaceencoding] %... This line gets expanded to: \definefontsynonym [Palatino][ec-uplr8a][encoding=3Dec] %... ...So at this point, your system would be looking around for ec- uplr8a.tfm, but it's not. You provide a clue as to why not: >2. >I thought that the default encoding should be texnansi In the new cont-sys.rme, it's set to ec encoding: \setupencoding [\s!default=3Dec] ...and the berry type synonyms are invoked: \usetypescript [berry] [\defaultencoding] So the following typescript gets invoked, mapping the above ec-uplr8a: \starttypescript [berry] [ec] \definefontsynonym [ec-uplr8a] [uplr8t] [encoding=3Dec] That, being the last one in the chain, is what ConTeXt looks for. For those following along at home, the whole chain of name resolution, taking into account the encoding, is therefore: (\rm\tf) > Serif > Palatino > ec-uplr8a > uplr8t >on my system following files are available: That's quite a mixture of types, below. Can you provide a listing of the .tfm files in fonts/tfm/urw/palatino =3F >uplr8a.afm (The base Adobe Font Metrics file, which enables you to generate new tfms) >uplr8v.tfm >uplr8v.pfb (Vietnamese variants of the fonts!) >uplr8a.pfb (That's the postscript font file you ultimately want to include in your document.) >uplr8v.htf (Irrelevant to our discussion. TeX4ht-related, I think=3F) >Summary: > >do I need to get the missing fonts/files and why are they not provided >with miktex. >Perhaps a change of the distribution is to prefer=3F (which one) Well, I'm wondering where all the tfms have gone on my distribution, as well (gwTeX on the Mac doesn't seem to include 8r or ec/8t metrics, either). It looks like you might have to do a texfont run to build (ConTeXt-named) tfms in order to be useful. It's not all that scary. I gave a rundown of the steps I followed in this primitive MyWay. It might be useful so long as you don't treat it as literal instructions: Cheers, adam -- =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D= -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-