From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51841 Path: news.gmane.org!not-for-mail From: Harrie Frericks Newsgroups: gmane.comp.tex.context Subject: Re: Two newbie questions about Texfont Date: Fri, 17 Jul 2009 11:11:43 +0200 Message-ID: <97eab8e50907170211q691435eam8862f9cd20c677c0@mail.gmail.com> References: <97eab8e50907141047la6ce330qceba240e6b52fbb@mail.gmail.com> <4A5CCABE.7090309@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1577952708==" X-Trace: ger.gmane.org 1247821970 23423 80.91.229.12 (17 Jul 2009 09:12:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Jul 2009 09:12:50 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 17 11:12:42 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1MRjUf-0003BN-C4 for gctc-ntg-context-518@m.gmane.org; Fri, 17 Jul 2009 11:12:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E20B61FADF; Fri, 17 Jul 2009 11:12:39 +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 21249-03-3; Fri, 17 Jul 2009 11:11:58 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B9DAE1FB3C; Fri, 17 Jul 2009 11:11:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 486091FB3C for ; Fri, 17 Jul 2009 11:11:55 +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 21779-04-2 for ; Fri, 17 Jul 2009 11:11:46 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by ronja.ntg.nl (Postfix) with ESMTP id 9D2D61FB39 for ; Fri, 17 Jul 2009 11:11:46 +0200 (CEST) Original-Received: from mail-yx0-f177.google.com (mail-yx0-f177.google.com [209.85.210.177]) by filter1-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n6H9Bj62002671 for ; Fri, 17 Jul 2009 11:11:45 +0200 Original-Received: by yxe7 with SMTP id 7so1197197yxe.16 for ; Fri, 17 Jul 2009 02:11:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type; bh=NJIOJN75t8COUQJGu/7repK8qIftbKZDDxhMUyHM03k=; b=YzfRpnRcZCVk9icB6tCRJIJ+6a/IP6ZNalZUTZstqfWNpehuOuqjsUdSfXMFoOvdtR OD4OF9Ik0dquGkw56ZeiB2BiG4xPLWkXG+lrPPovIng1A/ZNteHBAzcpPuK/y0I6VK+u X8EfbeDH6Tx2UTSOR7mp/NsNDPr6cfVrjyBaU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=QfUthR11pKJamNNJL9/16sb8n5AW0LV/mUlMqi0ANmns8cjpuEsKiV6Je3ielf+3KV 2cDl9ET5gnxBUIwgQG6VKrwLxAF+rjVrNAmkPLXk6cdGQ2S6jt5bNX5N/mJgJW3SdUQs m+K4CSbK1l0JfERvCbkWXTUdnouCncytTzOQg= Original-Received: by 10.151.47.7 with SMTP id z7mr1504805ybj.83.1247821903625; Fri, 17 Jul 2009 02:11:43 -0700 (PDT) In-Reply-To: <4A5CCABE.7090309@wxs.nl> X-Google-Sender-Auth: 57225f240113dfcd X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.210.177; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 262209463 - 4056ac47c8ba - 20090717 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:51841 Archived-At: --===============1577952708== Content-Type: multipart/alternative; boundary=0015174c352c4efeca046ee32d64 --0015174c352c4efeca046ee32d64 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I've been looking into luatex and got it running now. However, i'm not sure how to link a font that I want to use in my ConText documents to an actual font file on my disk. For example, I have tried: \definebodyfont[12pt][rm][ tf="c:\fonts\ITC Stone Serif\SR______.AFM" ] It doesn't work, so I guess this approach is both naive and optimistic. I also read the manual "Texfont explained" for clues, but that didn't help either. Could someone show me how to use type1 font files with Luatex without having to go the TexFont route. Thanks, Harrie. On Tue, Jul 14, 2009 at 8:13 PM, Hans Hagen wrote: > Harrie Frericks wrote: > >> Now that I finally have Context running I'm trying to install a number of >> type1 fonts. I've read the Texfont manual, but I couldn't find answers to >> these questions: >> 1. Can Texfont recursively process a font tree? >> >> I have a directory font tree like this: >> >> c:\fonts\type1\font-family1 >> c:\fonts\type1\font-family2 >> c:\fonts\type1\font-family3 >> >> each font-family subdirectory has a number of .afm files. If I set >> --sourcepath to c:\fonts\type1 can Texfont recurse all the subdirectories >> of >> the font families and locate and process the .afm files? >> >> >> 2. Can Texfont handle .afm files with extensions in uppercase? >> >> Most of my type1 font files are in uppercase like: XYZ_____.AFM I can >> only >> get Texfont to process these files if I first rename them to lowercase, >> like >> XYZ_____.AFM >> > > since you're new to context you can consider skipping pdftex and moving on > to either xetex or luatex (which uses context mkiv) > > for luatex/mkiv you don't need to mess around with fonts as this combo > directly handles afm/pfb files so there is no need for creating tfm metrics > > Hans > > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com > | www.pragma-pod.nl > ----------------------------------------------------------------- > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___________________________________________________________________________________ > --0015174c352c4efeca046ee32d64 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I've been looking into luatex and got it running now. However, i&#= 39;m not sure how to link a font that I want to use in my ConText documents= to an actual font file on my disk. For example, I have tried:

\definebodyfont[12pt][rm][
=A0=A0 =A0tf=3D"c:= \fonts\ITC Stone Serif\SR______.AFM"
]

<= div>It doesn't work, so I guess this approach is both naive and optimis= tic.

I also read the manual "Texfont explained" fo= r clues, but that didn't help either.

Could so= meone show me how to use type1 font files with Luatex without having to go = the TexFont route.

Thanks, Harrie.

On = Tue, Jul 14, 2009 at 8:13 PM, Hans Hagen <pragma@wxs.nl> wrote:
Harrie Frericks wrote:
Now that I finally have Context running I'm trying to install a number = of
type1 fonts. I've read the Texfont manual, but I couldn't find answ= ers to
these questions:
1. Can Texfont recursively process a font tree?

I have a directory font tree like this:

c:\fonts\type1\font-family1
c:\fonts\type1\font-family2
c:\fonts\type1\font-family3

each font-family subdirectory has a number of .afm files. If I set
--sourcepath to c:\fonts\type1 can Texfont recurse all the subdirectories o= f
the font families and locate and process the .afm files?


2. Can Texfont handle .afm files with extensions in uppercase?

Most of my type1 font files are in uppercase like: XYZ_____.AFM =A0 I can o= nly
get Texfont to process these files if I first rename them to lowercase, lik= e
XYZ_____.AFM

since you're new to context you can consider skipping pdftex and moving= on to either xetex or luatex (which uses context mkiv)

for luatex/mkiv you don't need to mess around with fonts as this combo = directly handles afm/pfb files so there is no need for creating tfm metrics=

Hans


-----------------------------------------------------------------
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0Hans Hagen | PRAGMA ADE
=A0 =A0 =A0 =A0 =A0 =A0 =A0Ridderstraat 27 | 8061 GH Hasselt | The Netherl= ands
=A0 =A0 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 | ww= w.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage =A0: http://= www.pragma-ade.nl / http://tex.aanhet.net
archive =A0: https://foundry.supelec.fr/projects/contextrev/
wiki =A0 =A0 : http:= //contextgarden.net
___________________________________________________________________________= ________

--0015174c352c4efeca046ee32d64-- --===============1577952708== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1577952708==--