From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95797 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: math font fallback for palatino \cal Date: Sun, 14 Aug 2016 21:17:35 +0200 Message-ID: <57B0C3CF.2050505@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6144161141506393234==" X-Trace: blaine.gmane.org 1471202291 28880 195.159.176.226 (14 Aug 2016 19:18:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 14 Aug 2016 19:18:11 +0000 (UTC) User-Agent: Postbox 4.0.8 (Macintosh/20151105) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 14 21:18:06 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZ0v7-0007Fq-Kq for gctc-ntg-context-518@m.gmane.org; Sun, 14 Aug 2016 21:18:05 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B632B14F39; Sun, 14 Aug 2016 21:17:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8ThYVc0MkaV5; Sun, 14 Aug 2016 21:17:51 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 0912114F3C; Sun, 14 Aug 2016 21:17:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2EBE714F3A for ; Sun, 14 Aug 2016 21:17:50 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YB99_W53_K3i for ; Sun, 14 Aug 2016 21:17:48 +0200 (CEST) Original-Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id E57BB14F39 for ; Sun, 14 Aug 2016 21:17:38 +0200 (CEST) Original-Received: by mail-wm0-f53.google.com with SMTP id q128so16106568wma.1 for ; Sun, 14 Aug 2016 12:17:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=zb2zYtxdf2p/2eXvH6z6bawNpShEKTqW+FTfRRyBRGU=; b=k205tv5ibXR+kMrloK4gMQdNzsDak1lsgYsac3HFATRZa4nhuQyqSTCvCGBaKH+56A AaP6mCeIDRvqmrVv1CKIOmzNiv5s2d/MFYfdvDnPHHt4QLuEd4qMoEIH6nJbkOelqSzZ t9KzrofZyfcgDeoAdkvcjFJxMefVR8PGf3YXAAafOmrNGRA9+iPLMZFjTixZw3jjZy3k fHQKDUqo9dKBHqikfCu2WYblqguUYsWVUTTdjWSLU+Fc3qRzN25RmnIGaFTeLU8Bhagc NKbyV+H2DZN3bHiT6iePwPi72T2rm7aq2NlZDMpl+jINw+CB8QsBQOfSY1stSsbGrB/N 3B/g== 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; bh=zb2zYtxdf2p/2eXvH6z6bawNpShEKTqW+FTfRRyBRGU=; b=dB+ICA0nZRD2bGiNsActw8CXe2G62LuScLF64fjm2Qvdg4wus10eQxp9vDfzXP8B2U YjoEA8q0HNHm2pd4ZILNSQizA//+MvmMHzG4uuO5/Hd1yVY2K6wdJ/e9/xOw8zLJPswr 4Sf1VA8EkquVNgQc9Zi+k/2z4q9DENaielIP5hvnrp2U3VTVUO5bvzs1CQ/2NuyrHeGd 64YOaeVIcvKuIMHGERm0EVShGnguThZavIDBF2a38rL8YD5VKyyf/kFo0HNqakPEJYBE N2yJTHw39nsjHv/v1lZcJ1gVruT4+z2FTCDoEeKJVxhKVQgr47lpiiwMbtGavy35pvfQ M6yA== X-Gm-Message-State: AEkoouv32lJRuseUhgRd8RLfr3enZkZWp5kQCMKwxyZ2ibLI+WPASsc1GImfcxxR6kVHMQ== X-Received: by 10.28.153.202 with SMTP id b193mr11047431wme.62.1471202258247; Sun, 14 Aug 2016 12:17:38 -0700 (PDT) Original-Received: from keima.localdomain (x2f2aa54.dyn.telefonica.de. [2.242.170.84]) by smtp.gmail.com with ESMTPSA id i8sm12942992wmg.21.2016.08.14.12.17.37 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 14 Aug 2016 12:17:37 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:95797 Archived-At: This is a multi-part message in MIME format. --===============6144161141506393234== Content-Type: multipart/alternative; boundary="------------030602050207000609030203" This is a multi-part message in MIME format. --------------030602050207000609030203 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit > Idris Samawi Hamid ادريس سماوي حامد > 14. August 2016 um 20:33 > Dear gang, > > Using pagella (palatino) for a project here. Unfortunately > texgyrepagella-math.otf has a rather unattractive set of \cal caps; > schola, termes, bonum etc. all use the same and much better-looking set. > > So I decided to try and define a palatino math set with the \cal caps > from schola (= termes etc.). Succeeded after some trial and error: > attached are the positive results. Others may find the experiment > useful or even worth wikifying; it's a nice fallback exercise. > > Maybe there is a better or more up-to-date way to do this: In any > case, feel free to critique the attached. You can save a few lines for your font setup when you use the \definefontfamily and \definefallbackfamily commands. \definefontfamily [palatino_cg] [rm] [TeX Gyre Pagella] \definefallbackfamily [palatino_cg] [mm] [TeX Gyre Schola Math] [range={lowercasescript,lowercaseboldscript,uppercasescript,uppercaseboldscript},force=yes] \definefontfamily [palatino_cg] [mm] [TeX Gyre Pagella Math] \setupbodyfont[palatino] \starttext \m{\cal ABCDEFG \quad \bf ABCDEFG} \switchtobodyfont[palatino_cg] \m{\cal ABCDEFG \quad \bf ABCDEFG} \stoptext Wolfgang --------------030602050207000609030203 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Dear gang,

Using pagella (palatino) for a project here. Unfortunately texgyrepagella-math.otf has a rather unattractive set of \cal caps; schola, termes, bonum etc. all use the same and much better-looking set.

So I decided to try and define a palatino math set with the \cal caps from schola (= termes etc.). Succeeded after some trial and error: attached are the positive results. Others may find the experiment useful or even worth wikifying; it's a nice fallback exercise.

Maybe there is a better or more up-to-date way to do this: In any case, feel free to critique the attached.
You can save a few lines for your font setup when you use the \definefontfamily and \definefallbackfamily commands.

\definefontfamily     [palatino_cg] [rm] [TeX Gyre Pagella]
\definefallbackfamily [palatino_cg] [mm] [TeX Gyre Schola Math] [range={lowercasescript,lowercaseboldscript,uppercasescript,uppercaseboldscript},force=yes]
\definefontfamily     [palatino_cg] [mm] [TeX Gyre Pagella Math]

\setupbodyfont[palatino]

\starttext

\m{\cal ABCDEFG \quad \bf ABCDEFG}

\switchtobodyfont[palatino_cg]

\m{\cal ABCDEFG \quad \bf ABCDEFG}

\stoptext

Wolfgang
--------------030602050207000609030203-- --===============6144161141506393234== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============6144161141506393234==--