From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/19580 Path: news.gmane.org!not-for-mail From: Willi Egger Newsgroups: gmane.comp.tex.context Subject: Re: How to cook Garamond Date: Sun, 03 Apr 2005 22:57:56 +0200 Message-ID: <425058D4.5080707@boede.nl> References: <42AC552A@webmail.colostate.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1112561806 15966 80.91.229.2 (3 Apr 2005 20:56:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 3 Apr 2005 20:56:46 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Apr 03 22:56:43 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DIC8r-0001MQ-Hw for gctc-ntg-context-518@m.gmane.org; Sun, 03 Apr 2005 22:56:22 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2203312901; Sun, 3 Apr 2005 22:58:04 +0200 (CEST) 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 05361-01-8; Sun, 3 Apr 2005 22:57:59 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D8C12127E2; Sun, 3 Apr 2005 22:57:59 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 108CE127E2 for ; Sun, 3 Apr 2005 22:57:59 +0200 (CEST) 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 05361-01-7 for ; Sun, 3 Apr 2005 22:57:58 +0200 (CEST) Original-Received: from smtp-vbr9.xs4all.nl (smtp-vbr9.xs4all.nl [194.109.24.29]) by ronja.ntg.nl (Postfix) with ESMTP id 23EDC127D6 for ; Sun, 3 Apr 2005 22:57:58 +0200 (CEST) Original-Received: from [192.168.0.193] (a80-126-172-1.adsl.xs4all.nl [80.126.172.1]) by smtp-vbr9.xs4all.nl (8.12.11/8.12.11) with ESMTP id j33KvstD096269 for ; Sun, 3 Apr 2005 22:57:58 +0200 (CEST) (envelope-from w.egger@boede.nl) User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <42AC552A@webmail.colostate.edu> X-Virus-Scanned: by XS4ALL Virus Scanner 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: news.gmane.org gmane.comp.tex.context:19580 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:19580 Hi Idris, Thank you very much for your quick reaction providing us with a complete set of instructions! -- After the small correction in the type-ugm.tex the fonts worked immediately! Thanks! Willi Idris Samawi Hamid wrote: > Dear syndicate, > > [Garamond is a nice font. Now that there is a free version, this would be a > nice default font to add to the next ConTeXt distribution. In the meantime:] > > How to cook Garamond (my apologies to the experts for the verbosity): > > 1. Download > > ftp://dante.ctan.org/tex-archive/fonts/urw/garamond.zip (actually, you only > need the pfb and afm files, unless your texfont does not work); > > 2. place ONLY the afm and pfb files in an empty temporary directory; > > 3. from /temp>, run > > texfont --ma --in --ve=urw --co=garamond --show > > you may verify the installation of your font by examining > texnansi-urw-garamond.pdf. > > 4. If texfont does not work, you will have to do more work-> the zip package > contains tfms etc, and here is a map file you will need: > > =============texnansi-urw-garamond.map============== > % You need to add the following line to pdftex.cfg: > % > % map +texnansi-urw-garamond.map > % > % Alternatively in your TeX source you can say: > % > % \pdf {+texnansi-urw-garamond.map} > % > % In ConTeXt you can best use: > % > % \loadmapfile[texnansi-urw-garamond.map] > > texnansi-raw-ugmm8a GaramondNo8-Med 4 < ugmm8a.pfb texnansi.enc > texnansi-raw-ugmmi8a GaramondNo8-MedIta 4 < ugmmi8a.pfb texnansi.enc > texnansi-raw-ugmr8a GaramondNo8-Reg 4 < ugmr8a.pfb texnansi.enc > texnansi-raw-ugmri8a GaramondNo8-Ita 4 < ugmri8a.pfb texnansi.enc > ========================================================= > > If texfont works, ignore step 4; > > 5. Now write to file the following typescript: > > ==========================type-ugm.tex====================== > % raw fonts > > \starttypescript[serif] [garamond] [texnansi] > > \definefontsynonym[Garamond] [ugmr8a] [encoding=texnansi] > \definefontsynonym[GaramondItalic] [ugmri8a] [encoding=texnansi] > \definefontsynonym[GaramondBold] [ugmm8a] [encoding=texnansi] > \definefontsynonym[GaramondBoldItalic][ugmmi8a] [encoding=texnansi] > > \stoptypescript > > %Names > > \starttypescript [serif] [garamond] [name] > > \setups[font:fallback:serif] > > \definefontsynonym[Serif] [Garamond] > \definefontsynonym[SerifBold] [Garamond-Bold] > \definefontsynonym[SerifItalic] [Garamond-Italic] > \definefontsynonym[SerifBoldItalic][Garamond-BoldItalic] > > \stoptypescript > > %Synonyms > > \starttypescript [serif] [garamond] [texnansi] > > \definefontsynonym [Garamond] > [\typescriptthree-ugmr8a] > [encoding=\typescriptthree] > > \definefontsynonym [Garamond-Bold] > [\typescriptthree-ugmri8a] > [encoding=\typescriptthree] > > \definefontsynonym [Garamond-Italic] > [\typescriptthree-ugmm8a] > [encoding=\typescriptthree] > > \definefontsynonym [Garamond-BoldItalic] > [\typescriptthree-ugmmi8a] > [encoding=\typescriptthree] > > \stoptypescript > > % maps > > \starttypescript [map] [garamond] [texnansi] > > \loadmapfile[texnansi-urw-garamond.map] > > \stoptypescript% > > % typefaces > > \starttypescript [URWGaramond] > > \definebodyfontenvironment > [urwgaramond] > [default] > [interlinespace=2.8ex] > > \definetypeface [urwgaramond] > [rm] [serif] [garamond] [default] > [encoding=texnansi] > > \definetypeface [urwgaramond] > [ss] [sans] [helvetica] [default] > [encoding=texnansi] > > \definetypeface [urwgaramond] > [mm] [math] [palatino] [default] > [encoding=texnansi] > > \definetypeface [urwgaramond] > [tt] [mono] [modern] [default] > [encoding=texnansi] > > \stoptypescript > > =========================== > > If there are better/more aesthetic choices for sans and math, let me know-) > > 6. Test it out: > > =========================== > % output=pdf interface=en > > \starttext > > \usetypescriptfile[type-ugm] > \usetypescript[URWGaramond] > %\setupbodyfont[urwgaramond,12pt] > > \definetypeface [garamond][rm][serif][garamond][default][encoding=texnansi] > \switchtotypeface[garamond] > > \input knuth > > \stoptext > =========================== > > You try \setupbodyfont instead of \definetypeface. > > Have fun with Garamond! > > Best > Idris > > ============================ > Professor Idris Samawi Hamid > Department of Philosophy > Colorado State University > Fort Collins, CO 80523 > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context