From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85248 Path: news.gmane.org!not-for-mail From: Lars Huttar Newsgroups: gmane.comp.tex.context Subject: simplefonts: defining a fallback for a non-main font Date: Thu, 14 Nov 2013 16:52:46 -0500 Message-ID: <5285462E.5020907@sil.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1384465983 31391 80.91.229.3 (14 Nov 2013 21:53:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Nov 2013 21:53:03 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 14 22:53:10 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 1Vh4qZ-00013f-AB for gctc-ntg-context-518@m.gmane.org; Thu, 14 Nov 2013 22:53:07 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5B35210239; Thu, 14 Nov 2013 22:53:06 +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 F7-Ho3mcxrQi; Thu, 14 Nov 2013 22:53:03 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id AABD010201; Thu, 14 Nov 2013 22:53:03 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AA23310201 for ; Thu, 14 Nov 2013 22:53:01 +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 RFZvZFEeP64S for ; Thu, 14 Nov 2013 22:52:50 +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 950D5101FE for ; Thu, 14 Nov 2013 22:52:50 +0100 (CET) Original-Received: from mail-yh0-f43.google.com (mail-yh0-f43.google.com [209.85.213.43]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rAELqnoI014827 for ; Thu, 14 Nov 2013 22:52:49 +0100 Original-Received: by mail-yh0-f43.google.com with SMTP id v1so1365926yhn.2 for ; Thu, 14 Nov 2013 13:52:48 -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:content-type:content-transfer-encoding; bh=0vqn6h63Rbq0tCqNT2DKlhgb7UGQnzXVSWw2wpFZjzE=; b=FN5lXNbATOEbBlxNSXR2d0uCwv04y02JggYgc7nOPOm/nyTUePcM2sE9BVRy++6rby 8bf8o6c1MoGNXIUZuE2X33q8qxGLj1mGLwIbiqP6RnAPQYlSRMiwPhqS/CHVqKcv7yW/ +HEXjdL1ngA71f6aSCojjVjZ0uFiZgVzHtlr+x5djOQI3lOnmq69Ff14B0WulvhLCmOL RpnlWLc+pNM3rKgX9tfC4jxa/5LdZdbE24Fxm9Xh2N3JW52vxfH5Y35/BthGK8u2Yzqd 8rjIyx5zGpSVJezY+cnEDMikD4i8GNpelcTPRvhGYqP/fVmZ4ApVhT7DhtUc9Yjwu2UD sZkg== X-Gm-Message-State: ALoCoQlRRdj9oeWfXVZEygeBekmNQt+3+K8w6CigKMaSIwMJQgeb7ln4kqjYPt0EY2QLkRYZchT/ X-Received: by 10.236.222.231 with SMTP id t97mr2040106yhp.125.1384465968418; Thu, 14 Nov 2013 13:52:48 -0800 (PST) Original-Received: from [172.22.10.212] ([162.40.29.3]) by mx.google.com with ESMTPSA id g14sm2171508yhb.23.2013.11.14.13.52.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 14 Nov 2013 13:52:47 -0800 (PST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.213.43; 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: 0QKNxQN4J - 4de4e1a51a32 - 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:85248 Archived-At: Hi again, I'm using simplefonts (TeX Live 2013 version) and I have a main font: \setmainfont[Gentium Book Basic] and I can set a fallback for it, \setmainfontfallback[Gentium Plus][range={ipaextensions}, force=yes, rscale=auto] and that works. But then I have another font for the title: \definesimplefont[titleface][Gentium Basic][size=40pt] How do I set a fallback for it? After looking at the source code for simplefonts, I tried: % undefined cs: \definesimplefontfallback[titleface][Gentium Plus][range={ipaextensions}, force=yes, rscale=auto] % undefined cs: \fontfallback[titleface][Gentium Plus][range={ipaextensions}, force=yes, rscale=auto] % undefined cs: \definefallbackfont[titleface][Gentium Plus][range={ipaextensions}, force=yes, rscale=auto] But they all gave "undefined control sequence" errors. I can work around the problem by setting the main font before the title, using the main font for the title, and then changing the main font after the title is done. But that seems kludgy. Thanks, Lars ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________