From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/94472 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Strange behavior with Utopia fonts in math mode Date: Sun, 17 Apr 2016 11:29:11 +0200 Message-ID: <57135767.2020100@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5614219915025435569==" X-Trace: ger.gmane.org 1460885395 18679 80.91.229.3 (17 Apr 2016 09:29:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Apr 2016 09:29:55 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Apr 17 11:29:44 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 plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1arj1T-0006KQ-KW for gctc-ntg-context-518@m.gmane.org; Sun, 17 Apr 2016 11:29:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 32B54A78C; Sun, 17 Apr 2016 11:29:27 +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 e1URM8ehJV22; Sun, 17 Apr 2016 11:29:25 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 852F2A791; Sun, 17 Apr 2016 11:29:25 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E4206A78C for ; Sun, 17 Apr 2016 11:29:24 +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 avko_68WHfDD for ; Sun, 17 Apr 2016 11:29:24 +0200 (CEST) Original-Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) (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 70616A788 for ; Sun, 17 Apr 2016 11:29:14 +0200 (CEST) Original-Received: by mail-wm0-f45.google.com with SMTP id v188so82021489wme.1 for ; Sun, 17 Apr 2016 02:29:14 -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=6xfr00LqsF3Idh54ucM8t/DSQB6YFkV8GKFtr9ynOOs=; b=m0Sm8fpesOAWFBaBMBvY9pEx/nelOSDhmHf65LteIbLUtV4BJMdZpsZCA8rA7KPN3U QNPTdKGah1/L2hOK1Y6gs7ExUxTjitzrybVieCrdojGpxj215GYWVZSb6xbt2crJQi4m cXD58wakXbnSi41X9RgcyIhGgZlNmBbvMk1gK/mgk1+hKcSUIpWMUQl4zG3EyR/4370g TNP3St5f2Au9xMg1lqs0Rz9xs2cEBkg5T9UDXQMy0qap4BuyLEPjGg1LK8K2gQ18xlni TJwbHuN7NnaQYJHB982faJpqiuANfk13Kf1ll12T17pJROBK6r8pCRUkOy7rOysWfA6v 8QJQ== 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=6xfr00LqsF3Idh54ucM8t/DSQB6YFkV8GKFtr9ynOOs=; b=QptSewJWqMVKQe26gJ+tdm4O4ROn6lopbRM6ONOpDbZbsQSDcRTq4/xRIGFdmui/TS xaLsqSeuGK7BYuB1EXPsP0ts/nP0yuyu5U1pi6gsqKiKpA1MtEUq0pNDHL09dJXnBJN6 4FDqZVRVETu111i4Su3DMcn3dU96vIuac1nOrDi/rILncERyjhWqxzNVRrCtGNW6jm8t YtWZmmKhy+wwgsE2E4pLvyecrCFy29Wd24w65OmtH2t9UiEfkFEBNLCHhKSCB3Xg5YA9 xsUY0nzA6SQegAJErr3X2s4WjJskODJpZvewje6bGIK5e7pGw1eti5JeJxYtmIydjyG5 LBBQ== X-Gm-Message-State: AOPr4FVr5S6GsUUJ5nkUYtFnBywAYNGey7CWCj3BXW0Hb/Vf8ZCNpmtN6C0k6D3Pmr7MLQ== X-Received: by 10.28.220.213 with SMTP id t204mr13586468wmg.42.1460885354243; Sun, 17 Apr 2016 02:29:14 -0700 (PDT) Original-Received: from keima.localdomain (x2f23ffa.dyn.telefonica.de. [2.242.63.250]) by smtp.gmail.com with ESMTPSA id dj8sm16734191wjc.28.2016.04.17.02.29.13 for (version=TLSv1/SSLv3 cipher=OTHER); Sun, 17 Apr 2016 02:29:13 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) 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:94472 Archived-At: This is a multi-part message in MIME format. --===============5614219915025435569== Content-Type: multipart/alternative; boundary="------------050305060706070309090708" This is a multi-part message in MIME format. --------------050305060706070309090708 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Fabrice Couvreur > 17. April 2016 um 11:16 > Hello, > I compiled this file with a strange exit for mathematical formula. What do you mean with "strange exit"? > What's missing in my file ? You get the necessary font when you use the "--fonts=mathdesign" for first-setup, e.g. sh first-setup.sh --fonts=mathdesign and your example can be reduced to (you can drop encoding=...) %% begin example \loadtypescriptfile[mathdesign] \definetypeface[mainface][rm][serif][palatino] [default] \definetypeface[mainface][ss][sans] [helvetica][default][rscale=auto] \definetypeface[mainface][mm][math] [utopia] [default][rscale=auto] \setupbodyfont[mainface,12pt] \starttext \input knuth \startformula f(x) = \sum_{i=1}^n a_i x^i \stopformula \stoptext %% end example There are a few mistakes in the output because the mapping from glyphs to unciode values for the math font has to be improved. Wolfgang --------------050305060706070309090708 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
17= .=20 April 2016 um 11:16
Hello,
I compiled this file with a strange exit for mathematical formula.
What do you mean with "strange exit"?
What's missin= g in my file ?
You get the necessary font when you use the "--fonts=3Dmathdesign" for=20 first-setup, e.g.

=C2=A0=C2=A0=C2=A0 sh first-setup.sh --fonts=3Dmathdesign

and your example can be reduced to (you can drop encoding=3D...)

%% begin example
\loadtypescriptfile[mathdesign]

\definetypeface[mainface][rm][serif][palatino] [default]
\definetypeface[mainface][ss][sans] [helvetica][default][rscale=3Dauto] \definetypeface[mainface][mm][math] [utopia]=C2=A0=C2=A0 [default][rscale= =3Dauto]

\setupbodyfont[mainface,12pt]

\starttext

\input knuth

\startformula
=C2=A0=C2=A0 f(x) =3D \sum_{i=3D1}^n a_i x^i
\stopformula

\stoptext
%% end example

There are a few mistakes in the output because the mapping from glyphs=20 to unciode
values for the math font has to be improved.

Wolfgang
--------------050305060706070309090708-- --===============5614219915025435569== 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= --===============5614219915025435569==--