From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51877 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Two newbie questions about Texfont Date: Sat, 18 Jul 2009 13:44:26 +0200 Message-ID: References: <97eab8e50907141047la6ce330qceba240e6b52fbb@mail.gmail.com> <4A5CCABE.7090309@wxs.nl> <97eab8e50907170211q691435eam8862f9cd20c677c0@mail.gmail.com> <7DE5D532-50BB-4191-A6B9-8D2E8C965BB2@gmail.com> <97eab8e50907170534n573e6e33qd95af39784a89ba@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1247917639 27760 80.91.229.12 (18 Jul 2009 11:47:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Jul 2009 11:47:19 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 18 13:47:12 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 1MS8Ni-0007pB-BV for gctc-ntg-context-518@m.gmane.org; Sat, 18 Jul 2009 13:47:10 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C76BC1FB6B; Sat, 18 Jul 2009 13:46: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 08631-03-2; Sat, 18 Jul 2009 13:46:01 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DEC261FB38; Sat, 18 Jul 2009 13:46:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 82BEE1FB1F for ; Sat, 18 Jul 2009 13:45:59 +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 08631-03 for ; Sat, 18 Jul 2009 13:45:32 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by ronja.ntg.nl (Postfix) with ESMTP id 3C8121FB38 for ; Sat, 18 Jul 2009 13:45:17 +0200 (CEST) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by filter2-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n6IBiprY017919 for ; Sat, 18 Jul 2009 13:45:06 +0200 Original-Received: by fg-out-1718.google.com with SMTP id l27so406731fgb.8 for ; Sat, 18 Jul 2009 04:44:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=y6yVibPUutIUEeCJ8JltEvi9R+RQT8ptCwf2nwgpY1M=; b=ZDS9EsCy2iYWcZf8KUbFbEMvdX0+XQ5T1YwUe3sbkLk9ZV+cfOyFzlkqx2vPlIEqTr ylTNfW9eNANU4vikcOUdagr5WRFGMaTZ4JnYh2f49h59lJhAq5sGCG7sbAHuNGO5+zX1 OGeUcIlGQ0wt56/pvGQ5epfHLEE9P0y2OFC4Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=GX0pXo7zU36+qThO475HmsieRwW7stM8y3H4SVX2VV78HvSKHSe5Td0BSBBEgjqb2E 6t6wxcV9geei9kuDu9oqUmRtbmaXhghvx71yiEsIY4uHcPReYPIUCVOXGmhIo4h0Kv9v hxN0qWFLST8JUDg1MW28ve3dn8P/Jd7jQDncM= Original-Received: by 10.86.51.20 with SMTP id y20mr1634646fgy.72.1247917490868; Sat, 18 Jul 2009 04:44:50 -0700 (PDT) Original-Received: from ?192.168.2.23? (p5B2953E2.dip.t-dialin.net [91.41.83.226]) by mx.google.com with ESMTPS id 12sm3494256fgg.4.2009.07.18.04.44.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 18 Jul 2009 04:44:50 -0700 (PDT) In-Reply-To: <97eab8e50907170534n573e6e33qd95af39784a89ba@mail.gmail.com> X-Mailer: Apple Mail (2.935.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.14.220.153; 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: 262698256 - 30d89889dcea - 20090718 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:51877 Archived-At: Am 17.07.2009 um 14:34 schrieb Harrie Frericks: > 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..... The \definetypeface command alone is not enough, you have to tell ConTeXt which of the fonts should be used for the upright, italic, bold etc. style. You can find such a example at the end of the page -> http://wiki.contextgarden.net/Fonts_in_LuaTex#Example It's a good exercise to write a complete typescripts once by hand but when you want a simpler way to use font with LuaTeX you can use the simplefonts module, it hides the complete typescript mechanism from the user and you have to know only a few commands, the following code should be enough to use your font in a document. \usemodule[simplefonts] % make sure the module is available on your system \setmainfont[StoneSans] % create a typescript for 'StoneSans' and enable the font \starttext This is a dummy text which is hopefully typeset with the StoneSans font, you could also switch the style to {\it italic}, {\bf bold} or {\bi bolditalic}. \stoptext 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 ___________________________________________________________________________________