From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85227 Path: news.gmane.org!not-for-mail From: Lars Huttar Newsgroups: gmane.comp.tex.context Subject: Re: syntax for \definesimplefont in TeX Live version of simplefonts Date: Thu, 14 Nov 2013 11:51:35 -0500 Message-ID: <5284FF97.4070103@sil.org> References: <5284EF60.7070305@sil.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1384447901 4749 80.91.229.3 (14 Nov 2013 16:51:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Nov 2013 16:51:41 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 14 17:51:45 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vh08v-0005qQ-Fj for gctc-ntg-context-518@m.gmane.org; Thu, 14 Nov 2013 17:51:45 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 49EC910235; Thu, 14 Nov 2013 17:51:44 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id TBcOJYBBGrB5; Thu, 14 Nov 2013 17:51:41 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 9BED610207; Thu, 14 Nov 2013 17:51:41 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BAD0D10213 for ; Thu, 14 Nov 2013 17:51:40 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17cxPQ22KXiS for ; Thu, 14 Nov 2013 17:51:39 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 211E310201 for ; Thu, 14 Nov 2013 17:51:39 +0100 (CET) Original-Received: from mail-gg0-f176.google.com (mail-gg0-f176.google.com [209.85.161.176]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rAEGpbWM009927 for ; Thu, 14 Nov 2013 17:51:38 +0100 Original-Received: by mail-gg0-f176.google.com with SMTP id u2so281382ggn.7 for ; Thu, 14 Nov 2013 08:51:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=N16QfzxO+PvBr1rII341q4eNC5sQzw5lWT/kJyxhpok=; b=BKPgVptrur5eUQdCVyMqMgikd5rc8lquVNYG3xsZtwp/ftpUgmRh9flC9URyY8g5el qiVppt7IDXdXafhyk5dDRGXktHGb+/NazjKuiC+0I8FqA1pn968CcIz7qaRP/ifIp7fq b+GiyPSbCSKTTVtRJSd+GcdhD1f3tWQU2e13GL1TAc3gIoKC8Bm8NijLB+dXKEjQr6xb /nJ1lvVQmw/fEeHRZ33R0BIkq6/dPkCgTJjaltS0N4lEpOr+aKyp32eIP1ggxaDZahsv 5ln5QqSBuG723gMA6A23agRcAGmgv0u5NHRcRXh2uWwX0NIADofVnnZel71P8ESl2S7F 7/uw== X-Gm-Message-State: ALoCoQmBdf0/4UDUqouMfhzScZyJu4QGzP9TLC4k1t1bgvseHhPylVHifZ83Um4yJ+8XxR98VI9F X-Received: by 10.236.91.109 with SMTP id g73mr1833317yhf.24.1384447897392; Thu, 14 Nov 2013 08:51:37 -0800 (PST) Original-Received: from [172.22.10.212] ([162.40.29.3]) by mx.google.com with ESMTPSA id v96sm359962yhp.3.2013.11.14.08.51.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 14 Nov 2013 08:51:36 -0800 (PST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.176; 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: 0QKNsPCDP - 3c6772cbcbac - 20131114 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:85227 Archived-At: On 11/14/2013 11:31 AM, Wolfgang Schuster wrote: > Am 14.11.2013 um 16:42 schrieb Lars Huttar : > >> Hello, >> We are using simplefonts, the version included with TeX Live 2013. As >> mentioned in another email, we don't have the freedom to experiment with >> potentially unstable versions. >> >> I've been reading >> http://wiki.contextgarden.net/simplefonts >> and have it working well so far with the mainfont, sansfont, and >> mainfontfallback. >> >> The part I need help with is for using another font. >> http://wiki.contextgarden.net/simplefonts#Defining_other_typefaces_and_f= onts >> says we can use >> >> * |\definesimplefont|, defines a font for the use in headers or other >> style elements. >> * |\simplefont|, defines a font for inline use. >> >> Can anyone tell me the syntax for these commands - and for using them? >> I tried >> \definesimplefont[titleface][Gentium Basic] >> ... >> \setupbodyfont[titleface] >> >> There are no complaints and the \definesimplefont line, but I don't know >> if it's the right syntax. And the \setupbodyfont line is giving the warn= ing >> fonts > typescripts > unknown library 'titleface' >> >> >> >> So I'm guessing that the \definesimplefont line is correct, but I just >> don't know how to use the defined font. > The \definesimplefont command can be used when you want a certain font > for the chapter, section etc. heading, e.g. > > \definesimplefont[ChapterFont][Gentium Basic][size=3D24pt] > > \setuphead[chapter][style=3DChapterFont] > > but I don=92t recommend this command anymore (and removed it from the new= version) > because you can get the same result with a custom typeface, e.g. > > \definesimplefonttypeface[chapterfont][Gentium Basic] > > \definefont[ChapterFont][\classfont{chapterfont}{Serif} at 24pt] > > \setuphead[chapter][style=3DChapterFont] > > > When you want to change only the global font for your document you > need the \definesimplefonttypeface command, e.g. > > \definesimplefonttypeface[documentfont][Gentium Basic] > > \setupbodyfont[documentfont] > > > Wolfgang Thanks, very helpful. I will update the wiki page with this. Lars ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________