From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51860 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 14:34:56 +0200 Message-ID: <97eab8e50907170534n573e6e33qd95af39784a89ba@mail.gmail.com> References: <97eab8e50907141047la6ce330qceba240e6b52fbb@mail.gmail.com> <4A5CCABE.7090309@wxs.nl> <97eab8e50907170211q691435eam8862f9cd20c677c0@mail.gmail.com> <7DE5D532-50BB-4191-A6B9-8D2E8C965BB2@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0613619078==" X-Trace: ger.gmane.org 1247834156 27098 80.91.229.12 (17 Jul 2009 12:35:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Jul 2009 12:35:56 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 17 14:35:48 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 1MRmfA-00049q-6c for gctc-ntg-context-518@m.gmane.org; Fri, 17 Jul 2009 14:35:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7389D1FB49; Fri, 17 Jul 2009 14:35:42 +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 02330-02; Fri, 17 Jul 2009 14:35:07 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 303031FB30; Fri, 17 Jul 2009 14:35:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 34DA91FB30 for ; Fri, 17 Jul 2009 14:35:06 +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 02334-01-5 for ; Fri, 17 Jul 2009 14:34:58 +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 8DEBD1FADC for ; Fri, 17 Jul 2009 14:34:58 +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 n6HCYvce001623 for ; Fri, 17 Jul 2009 14:34:57 +0200 Original-Received: by yxe7 with SMTP id 7so1341948yxe.16 for ; Fri, 17 Jul 2009 05:34:56 -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=HjSUWUfpGPJ6Dn3/J9rMog2RNVW6A3CdRW48QiCZnJ8=; b=azTslOrIZruTwxt+QMFeNaUW6hotsBqlZ+QliBJ+TQ+fpToakiKv/KdIwxpxNtDH+E gasX3Vy0G6H1qLIZ16jRXq2Pp0h8gAixLdluHnTO+xbd6BNnJ+mskIHCdzDY7A3dt/7a 9QKu46LdLNT8tyBWFK4Y+QWK+vezMOwtqW40A= 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=fBpfGhXN/tr2LyCGK2BEKQA7m9JM7rLe8Xi7tYFtjLhqhW9wE9rQfwrnRZIYgFKhbU LvAKpw+fhWChPH1kHCw++fnTxpk7T/0mCjcVSdRIOCqxZyBiIZdUWDxzJ6eepePxdJQy Qo5ur7efG+6lhc3RQf3yPeL2TJatLbgAvwpvw= Original-Received: by 10.150.178.9 with SMTP id a9mr1839842ybf.44.1247834096347; Fri, 17 Jul 2009 05:34:56 -0700 (PDT) In-Reply-To: <7DE5D532-50BB-4191-A6B9-8D2E8C965BB2@gmail.com> X-Google-Sender-Auth: dc364249badfed6a 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: 262337641 - 261c415724e5 - 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:51860 Archived-At: --===============0613619078== Content-Type: multipart/alternative; boundary=000e0cd6a9420d2bcd046ee6044b --000e0cd6a9420d2bcd046ee6044b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Thanks, Wolfgang, that was another step in the right direction. Could you help me with the next step? This is what I did so far. (N.B. I'm not interested in TeX's standard fonts. I want to use my own type1 and otf fonts which are in c:\fonts). 1. I set OSFONTDIR to c:\fonts 2. I ran mtxrun --script font --reload That was succesfull. Mtxrun recursed the entire font directory tree. 3. I ran mtxrun --script fonts --list --pattern=*stone*. I got about twenty lines of output in three columns. Here is an example: stonesans StoneSans c:/fonts/ITC Stone Sans/SS______.AFM So far, so good. Now, I want to use this font and you included a link to a Wiki article. This article says I have to use a typescript. The example typescript from the Wiki uses the \definetypeface command. I searched everywhere for a good description of this command, but wasn't able to find one, unfortunately. Using the example from the Wiki: \definetypeface [Bonum] [rm] [serif] [bonum] [default] how would I use this command to be able to use my Stone Sans font from the mtxrun output? In the [Bonum] example I can't find a reference to a font file of the type c:\fonts\etc..... Any help would be greatly appreciated. Thanks, Harrie. On Fri, Jul 17, 2009 at 11:53 AM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote: > > Am 17.07.2009 um 11:11 schrieb Harrie Frericks: > > Could someone show me how to use type1 font files with Luatex without >> having to go the TexFont route. >> > > When you placed your fonts in the TeX directory (afm plus pfb files) > regenerate the file database > with 'context --generate' to let ConTeXt know about the new files. > > To see what the real names of the fonts is you can show the complete list > on the terminal with > 'mtxrun --script fonts --list', you can narrow down the list with names > when you use a search > pattern what could e in your case something like 'mtxrun --script fonts > --list --pattern=*stone*' > > When you're font is not listed in the output from mtxrun update also the > font database with > the command 'mtxrun --script font --regenrate'. > > To use the fonts in your document you can write a typescript for them by > hand [1] or use > the simplefonts module which offers a simpler method and does the hard work > itself hidden > for the user. > > [1] http://wiki.contextgarden.net/Fonts_in_LuaTex > > Wolfgang > > > > ___________________________________________________________________________________ > 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 > > ___________________________________________________________________________________ > --000e0cd6a9420d2bcd046ee6044b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks, Wolfgang, that was another step in the right direction. Could you h= elp me with the next step? This is what I did so far.=A0(N.B. I'm not i= nterested in TeX's standard fonts. I want to use my own type1 and otf f= onts which are in c:\fonts).

1. I set OSFONTDIR to c:\fonts
2. I ran mtxrun = --script font --reload

That was succesfull. Mtxrun= recursed the entire font directory tree.

3. I ran= mtxrun --script fonts --list --pattern=3D*stone*.
I got about twenty lines of output in three columns. Here is an exampl= e:

stonesans =A0StoneSans c:/fonts/ITC Stone Sans/= SS______.AFM

So far, so good. Now, I want to use t= his font and you included a link to a Wiki article. This article says I hav= e to use a typescript. The example typescript from the Wiki uses the \defin= etypeface command. I searched everywhere for a good description of this com= mand, but wasn't able to find one, unfortunately. Using the example fro= m the Wiki:

\definetypeface [Bonum] [rm] [serif] [bonum] [default]<= /div>

how would I use this command to be able to use my = Stone Sans font from the mtxrun output? In the [Bonum] example I can't = find a reference to a font file of the type c:\fonts\etc.....

Any help would be greatly appreciated.

Thanks, Harrie.



<= /div>


On Fri, Jul 17, 2009 at 11:53 = AM, Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrote:=

Am 17.07.2009 um 11:11 schrieb Harrie Frericks:


Could someone show me how to use type1 font files with Luatex without havin= g to go the TexFont route.

When you placed your fonts in the TeX directory (afm plus pfb files) regene= rate the file database
with 'context --generate' to let ConTeXt know about the new files.<= br>
To see what the real names of the fonts is you can show the complete list o= n the terminal with
'mtxrun --script fonts --list', you can narrow down the list with n= ames when you use a search
pattern what could e in your case something like 'mtxrun --script fonts= --list --pattern=3D*stone*'

When you're font is not listed in the output from mtxrun update also th= e font database with
the command 'mtxrun --script font --regenrate'.

To use the fonts in your document you can write a typescript for them by ha= nd [1] or use
the simplefonts module which offers a simpler method and does the hard work= itself hidden
for the user.

[1] http://wiki.contextgarden.net/Fonts_in_LuaTex

Wolfgang


___________________________________________________________________________= ________
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
___________________________________________________________________________= ________

--000e0cd6a9420d2bcd046ee6044b-- --===============0613619078== 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 ___________________________________________________________________________________ --===============0613619078==--