From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20550 Path: news.gmane.org!not-for-mail From: "John R. Culleton" Newsgroups: gmane.comp.tex.context Subject: Handy font install script. Date: Sun, 29 May 2005 08:30:02 +0000 Organization: WexfordPress Message-ID: <200505290830.02374.john@wexfordpress.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1117370085 10199 80.91.229.2 (29 May 2005 12:34:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 May 2005 12:34:45 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun May 29 14:34: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 1DcMzo-0008Jf-7I for gctc-ntg-context-518@m.gmane.org; Sun, 29 May 2005 14:34:24 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4500C127D9; Sun, 29 May 2005 14:36:51 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22382-04; Sun, 29 May 2005 14:36:50 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AFCF0127C8; Sun, 29 May 2005 14:33:10 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 46CD0127C8 for ; Sun, 29 May 2005 14:33:09 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22382-02 for ; Sun, 29 May 2005 14:33:08 +0200 (CEST) Original-Received: from mta10.adelphia.net (mta10.adelphia.net [68.168.78.202]) by ronja.ntg.nl (Postfix) with ESMTP id 1566F127B2 for ; Sun, 29 May 2005 14:33:07 +0200 (CEST) Original-Received: from 69-174-190-44.frdrmd.adelphia.net ([69.174.190.44]) by mta10.adelphia.net (InterMail vM.6.01.04.01 201-2131-118-101-20041129) with ESMTP id <20050529123303.OZYC17140.mta10.adelphia.net@69-174-190-44.frdrmd.adelphia.net> for ; Sun, 29 May 2005 08:33:03 -0400 Original-To: ntg-context@ntg.nl User-Agent: KMail/1.7.2 Content-Disposition: inline X-Virus-Scanned: 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-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:20550 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20550 The good news is that texfonts works as advertised, and the fonts can be used for any flavor of TeX except LaTeX which usually wants an .fd file. Even LaTeX users can use it if they are willing to use the old fashioned \font statement. I downloaded the sharefont and freefont collections for use with Gimp, but then had a need to use some of them with Context. Now there are dozens of fonts in each collection. So I wrote a wrapper script for texfonts to save time and errors. Here is my procedure (Slackware Linux computer, TeX installation taken from Slackware-current): 1. Create a subdirectory for each font or font family, and move all the files for the font/family to that subdirectory. 2. Run Ghostscript utility pf2afm on each font to create needed afm files (they don't come with.) 3. Modify updmap.cfg to accept a file called plus.map. 4.Move to the subdirectory, then run the following script makefonts, making up a foundry and family name appropriate to the font(s). The command is: "makefonts foundry family" ------------------------------------------------------- mkdir /usr/share/texmf-local/fonts/source/$1 mkdir /usr/share/texmf-local/fonts/source/$1/$2 cp * /usr/share/texmf-local/fonts/source/$1/$2/ texfont --en=8r --ve=$1 --co=$2 --ma --in cd /usr/share/texmf-local/fonts/map/pdftex/context/ cat *map >plus.map cp plus.map /usr/share/texmf/fonts/map/pdftex/updmap updmap texhash ------------------------------------------------------ 5. Modify the tex test file produced by texfonts to include near the end a \font statement and "The quick brown fox..." text in all caps and then in lower case. (Some of these fonts have no lower case.) 6. compile and inspect the test program. As always the script will have to be adapted to your particular installation. And I haven't bothered to figure out how to make it work in MSWin. The change I made in step 6 above might be worth doing in texfonts. Some donated fonts have problems with spacing between words, or even with the characters themselves. The generated afm files are also suspect in this regard. I hope this saves someone some time. John Culleton