From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20687 Path: news.gmane.org!not-for-mail From: "John R. Culleton" Newsgroups: gmane.comp.tex.context Subject: Re: Installing Truetype fonts in context. Date: Sun, 5 Jun 2005 11:46:32 +0000 Organization: WexfordPress Message-ID: <200506051146.32448.john@wexfordpress.com> References: <200506041421.47001.john@wexfordpress.com> <42A21E69.8050301@wxs.nl> 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 1117986583 18296 80.91.229.2 (5 Jun 2005 15:49:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 5 Jun 2005 15:49:43 +0000 (UTC) Cc: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Sun Jun 05 17:49:41 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 1DexNF-0008AM-KB for gctc-ntg-context-518@m.gmane.org; Sun, 05 Jun 2005 17:49:17 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3034D1279F; Sun, 5 Jun 2005 17:52:52 +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 19375-01; Sun, 5 Jun 2005 17:52:51 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5A7101279C; Sun, 5 Jun 2005 17:50:50 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E2C961279C for ; Sun, 5 Jun 2005 17:50:48 +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 18965-06 for ; Sun, 5 Jun 2005 17:50:47 +0200 (CEST) Original-Received: from mta13.adelphia.net (mta13.mail.adelphia.net [68.168.78.44]) by ronja.ntg.nl (Postfix) with ESMTP id 9487F1278D for ; Sun, 5 Jun 2005 17:50:47 +0200 (CEST) Original-Received: from 69-174-190-44.frdrmd.adelphia.net ([69.174.190.44]) by mta13.adelphia.net (InterMail vM.6.01.04.01 201-2131-118-101-20041129) with ESMTP id <20050605155045.XAML4191.mta13.adelphia.net@69-174-190-44.frdrmd.adelphia.net>; Sun, 5 Jun 2005 11:50:45 -0400 Original-To: ntg-context@ntg.nl User-Agent: KMail/1.7.2 In-Reply-To: <42A21E69.8050301@wxs.nl> 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:20687 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20687 On Saturday 04 June 2005 09:34 pm, Hans Hagen wrote: > John R. Culleton wrote: > > ttf2afm -e 8r.enc -o ds_izmir.afm ds_izmir.ttf > > ttf2afm -a -o ds_izmir.afm ds_izmir.ttf > > will produce an afm with *all* glyph names/metrics, the 8r will be made > from that one next time; ssuch an afm can be used then for other encodings > as well > Interesting fact #1: The ttv2afm program that comes with Slackware-current (version =1.0) doesn't use the -a option. The ttf2afm program that comes with TeXlive does. OTOH the Slack version allows for the option -v for version but the TeXlive version doesn't. The source in the TeXLive distro says it is version 1.0 also. So we have two variants of ttf2afm, both claiming to be version 1.0. The limited TeX for Linux distro from Pragma.nl is apparently the same as the texLive version in this respect. Therefore I will use the TeXLive version of ttf2afm. Interesting fact #2. The afm files produced for this particular font by the TeXLive version with and without option -a are virtually identical. Here are the results of the diff: ------------------------------------- < Comment Converted at Sun Jun 5 07:57:17 2005 by ttf2afm from font file `ds_izmir.ttf' --- > Comment Converted at Sun Jun 5 07:56:39 2005 by ttf2afm from font file `ds_izmir.ttf' 15c15,17 < StartCharMetrics 457 --- > StartCharMetrics 459 > C -1 ; WX 500 ; N .notdef ; B 0 0 0 0 ; > C -1 ; WX 0 ; N .null ; B 0 0 0 0 ; --------------------------------------------------------------------------- Continuing: > > With this run stream texfont has two complaints: first that it is an > > unknown vendor and > > second that it cannot find either a pfa or pfb file. > > can you check the map file? maybe you need to replace the pfb suffix by ttf > > Hans -- Interesting Fact #3. Apparently the map file created by texfont needs this tweak. This is not documented elsewhere. Interesting Fact #4. There is a more or less undocumented option of texfont which apparently converts a ttf file to its pfb equivalent using pfaedit. Since pfaedit is now fontforge perhaps fontforge needs to be aliased back to the earlier name. Or perhaps it doesn't work with the latest fontforge. I will explore further. Whether this option is intended to be used alone or integrated in a regular texfont run is also not clear. No doubt Hans will enlighten all of us. The plot thickens, but hopefully the light at the end of the ttf font tunnel is not just another onrushing train. John Culleton f