From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85224 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: syntax for \definesimplefont in TeX Live version of simplefonts Date: Thu, 14 Nov 2013 17:31:37 +0100 Message-ID: References: <5284EF60.7070305@sil.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1384446711 21559 80.91.229.3 (14 Nov 2013 16:31:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Nov 2013 16:31:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 14 17:31:55 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 1Vgzph-00055N-LL for gctc-ntg-context-518@m.gmane.org; Thu, 14 Nov 2013 17:31:53 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D23F010208; Thu, 14 Nov 2013 17:31:52 +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 LvNWf5b35jjz; Thu, 14 Nov 2013 17:31:50 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 650EC101FE; Thu, 14 Nov 2013 17:31:50 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B554D101FE for ; Thu, 14 Nov 2013 17:31:48 +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 FY7JSlI-Ndt9 for ; Thu, 14 Nov 2013 17:31:47 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id F28BF101F8 for ; Thu, 14 Nov 2013 17:31:46 +0100 (CET) Original-Received: from mail-bk0-x22e.google.com (mail-bk0-x22e.google.com [IPv6:2a00:1450:4008:c01::22e]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rAEGVkW6004862 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Thu, 14 Nov 2013 17:31:46 +0100 Original-Received: by mail-bk0-f46.google.com with SMTP id e11so1184407bkh.33 for ; Thu, 14 Nov 2013 08:31:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=4MlbY8uZHye7pH2qDFiYKSV6gS9tysoP9HQ3Pw1XAiA=; b=Ci3YpFuWapHzu6J6Fh7yjqCX2pXLN2dKKF5F0eytZZF6MMr5iBK/r4iXMTTMVdz2M8 jYyTKtCGIgpPHtReWoI4lbiicsXCj4xbP4f3llRu/hsXRb7z27GlTJYDnRJTY297MKO3 p6pOhtf8s8SQLj+y3J2Hvmriiijy9YPDKTSq4yqMbsomP2quhpkCmkHrvNo6Ugm/mcZq zbeeeEPZet58/tzMIXb1TrdDlX42pO/8bCEkekDWqKwfcI+2AAAbO0pODVlZzU7wFyGZ M/3T61XrrvNdu5zY1H+6DQ7Lw0T2OCwe+9iuzWbwZialMWdhffLYM/+RPGSdPAAMP1b4 kmYQ== X-Received: by 10.205.34.197 with SMTP id st5mr214498bkb.61.1384446705828; Thu, 14 Nov 2013 08:31:45 -0800 (PST) Original-Received: from keima.localdomain (x2f23066.dyn.telefonica.de. [2.242.48.102]) by mx.google.com with ESMTPSA id a4sm4002157bko.11.2013.11.14.08.31.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 14 Nov 2013 08:31:42 -0800 (PST) In-Reply-To: <5284EF60.7070305@sil.org> X-Mailer: Apple Mail (2.1822) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4008:c01::22e; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VKNsvK1M - 38ff84241754 - 20131114 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:85224 Archived-At: 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_fo= nts > 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 warni= ng > 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 v= ersion) 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 ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________