From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87137 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Two questions on \definefallbackfamily Date: Sun, 27 Apr 2014 16:58:28 +0200 Message-ID: <3DC0E108-C0EE-4181-B9FC-5E3A4C39D83C@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1398610735 2864 80.91.229.3 (27 Apr 2014 14:58:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Apr 2014 14:58:55 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Apr 27 16:58:50 2014 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 1WeQXa-0000LK-2q for gctc-ntg-context-518@m.gmane.org; Sun, 27 Apr 2014 16:58:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B33EF10269 for ; Sun, 27 Apr 2014 16:58:49 +0200 (CEST) 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 tgxGvk1VXK3h for ; Sun, 27 Apr 2014 16:58:49 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 252C310219 for ; Sun, 27 Apr 2014 16:58:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 55811101F8 for ; Sun, 27 Apr 2014 16:58:42 +0200 (CEST) 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 uxYPCIDKGRGQ for ; Sun, 27 Apr 2014 16:58:40 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id D1558101EB for ; Sun, 27 Apr 2014 16:58:32 +0200 (CEST) Original-Received: from mail-ee0-x230.google.com (mail-ee0-x230.google.com [IPv6:2a00:1450:4013:c00::230]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s3REwVvh001433 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sun, 27 Apr 2014 16:58:31 +0200 Original-Received: by mail-ee0-f48.google.com with SMTP id b57so4057194eek.35 for ; Sun, 27 Apr 2014 07:58:32 -0700 (PDT) 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=R3oim/IWBX+YhqzUwcPfGhZ/sJJyJ9EzuwmKZV5Mkmc=; b=cXLfVc5Aigrire42mN8mye2Y3127V39iYqJtj8RfHUVFP0WlKxG5nysAFmVe7oT1EC ABNVxEGgtXLKrtAFWbzM9YdH/04nOe6kdLUuO0EiyxgkprL0SLrlHhxf0i/2t02SpoFZ vnCSgKhYFdtMi+eylY9I1RKIBGa6s4EGHQ5DqLO8qRZvScYMO7eS/XH50dqnC5BegO7n 8GmvA/nR1841vG8q3gRU35lEBOOGfl/INXK6P9i8MN+oJSe2nefuHPN1cHyO1fKHeh92 guZRJ/Tlc9mYyuEVdt2eDjQst6UP+M7aCeEvRBP5WYlDP43dFF7kgqLC4PyQHGTeBpzd vRZA== X-Received: by 10.15.27.195 with SMTP id p43mr26171122eeu.2.1398610711933; Sun, 27 Apr 2014 07:58:31 -0700 (PDT) Original-Received: from keima.localdomain (x2f264ef.dyn.telefonica.de. [2.242.100.239]) by mx.google.com with ESMTPSA id m44sm42275213eep.14.2014.04.27.07.58.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 27 Apr 2014 07:58:31 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1874) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c00::230; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07LT2Wvl3 - 9d88492a8396 - 20140427 (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:87137 Archived-At: Am 25.04.2014 um 21:56 schrieb Mikael P. Sundqvist : > Hi! > = > 1) If i write > %%% > \definefontfamily [luface] [rm] [Adobe Garamond Pro][opticalsize=3Dyes] > \definefontfamily [luface] [ss] [FrutigerLTstd][opticalsize=3Dyes] > \definefallbackfamily [luface] [math] [Adobe Garamond Pro] > [math:uppercasenormal] > \definefallbackfamily [luface] [math] [Adobe Garamond Pro] > [math:uppercaseitalic] > \definefallbackfamily [luface] [math] [Adobe Garamond Pro] > [math:lowercasenormal] > \definefallbackfamily [luface] [math] [Adobe Garamond Pro] > [math:lowercaseitalic] > \definefallbackfamily [luface] [math] [Adobe Garamond Pro] [math:digitsno= rmal] > \definefontfamily [luface] [math] [Tex Gyre Pagella Math] > \definebodyfontenvironment[18pt] > \setupbodyfont[luface,18pt] > %%% > = > it works well. What if I want to change TeX Gyre Pagella Math to > Iwona? It turns out I cannot just change it to "Iwona", "iwona", > "Iwona Math", ... Other fonts seem to work, but Iwona no? When you set a math font the command looks first if there exists a font with the requested font and when this isn=92t the case it tries to load a typescript with the given name. The problem with Iwona is that there is a font with this name in TeXLive or the context suite and \definefontfamily therefore tries to load the font. Even though this isn=92t enough because you need a font in the opentype math format to use it as math font and this isn=92t the case for Iwona. What you can do is to use the \definetypeface command to load the iwona math font: \definetypeface [luface] [mm] [math] [iwona] [default] > 2) Say that I change the third last line above into > = > \definefontfamily [luface] [math] [Tex Gyre Pagella Math][scale=3D0.8] > = > to make the fonts fit better in size. Then the Adobe Garamond Pro in > math mode also scales with the factor 0.8, which looks bad. Is there a > way to scale only the TeX Gyre Pagella Math? Adding scale=3D1 to the > \definefallbackfamily commands does not seem to change anything. You have to use a value larger than 1 because size is relative to the size = of the math font. \definefallbackfamily [luface] [math] [Adobe Garamond Pro] [preset=3Dmath= :lowercasenormal,scale=3D1.25] 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 ___________________________________________________________________________= ________