From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20701 Path: news.gmane.org!not-for-mail From: "John R. Culleton" Newsgroups: gmane.comp.tex.context Subject: Re: Installing Truetype fonts in context. Date: Mon, 6 Jun 2005 10:08:41 +0000 Organization: WexfordPress Message-ID: <200506061008.42052.john@wexfordpress.com> References: <200506041421.47001.john@wexfordpress.com> <42A21E69.8050301@wxs.nl> <200506051146.32448.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="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1118067118 26850 80.91.229.2 (6 Jun 2005 14:11:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Jun 2005 14:11:58 +0000 (UTC) Cc: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 06 16:11:56 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 1DfIJE-0002Na-5Q for gctc-ntg-context-518@m.gmane.org; Mon, 06 Jun 2005 16:10:34 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 862851279C; Mon, 6 Jun 2005 16:14:15 +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 00430-03; Mon, 6 Jun 2005 16:14:15 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 00C4A12797; Mon, 6 Jun 2005 16:12:18 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9F64B12797 for ; Mon, 6 Jun 2005 16:12:17 +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 00430-02 for ; Mon, 6 Jun 2005 16:12:16 +0200 (CEST) Original-Received: from mta10.adelphia.net (mta10.adelphia.net [68.168.78.202]) by ronja.ntg.nl (Postfix) with ESMTP id 88A5912792 for ; Mon, 6 Jun 2005 16:12:16 +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 <20050606141215.EJGW17140.mta10.adelphia.net@69-174-190-44.frdrmd.adelphia.net>; Mon, 6 Jun 2005 10:12:15 -0400 Original-To: ntg-context@ntg.nl User-Agent: KMail/1.7.2 In-Reply-To: <200506051146.32448.john@wexfordpress.com> 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:20701 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20701 Thanks to all who assisted earlier in the thread. Let me start with a clean sheet of paper. My environment is Slackware Linux, which puts TeX in /usr/share/. However I have updated the ttf2afm program by copying the newer version from TeXLive as previously discussed. Here are my two font install scripts. The first is for a pfb file not accompanied by an afm file. The second is for a ttf file. They both seem to work for me, given my environment. Both require that the font be put in a subdirectory by itself to start with. Both require that the font be assigned an unique name. Both require that updmap.cfg be modified initially to include a file called plus.map. Both are called with vendorname fontname. Comments/criticisms appreciated. Are they candidates for the contextgarden WIKI? -----------------makefonts----------------------------------- pf2afm *pfb 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 mv plus.map /usr/share/texmf/fonts/map/pdftex/updmap updmap texhash ------------------------------------------------------------- --------------------makettls-------------------------------- ttf2afm *ttf 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/ sed {s/pfb/ttf/} *$2* cat *map >plus.map mv plus.map /usr/share/texmf/fonts/map/pdftex/updmap updmap texhash ------------------------------------------ -- John Culleton