From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/109373 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sylvain Hubert Newsgroups: gmane.comp.tex.context Subject: Re: \switchtobodyfont behaves differenctly with splitted parameters Date: Sun, 8 Nov 2020 12:02:58 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2302566592860241086==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25844"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 08 12:03:29 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kbiTp-0006d5-Cz for gctc-ntg-context-518@m.gmane-mx.org; Sun, 08 Nov 2020 12:03:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 92FF71AA364; Sun, 8 Nov 2020 12:03:13 +0100 (CET) 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 BxUz_29pSbUC; Sun, 8 Nov 2020 12:03:12 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B73481AA357; Sun, 8 Nov 2020 12:03:12 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E8B3B1AA354 for ; Sun, 8 Nov 2020 12:03:11 +0100 (CET) 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 PHYmlUEAGhHq for ; Sun, 8 Nov 2020 12:03:11 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.42; helo=mail-io1-f42.google.com; envelope-from=champignoom@gmail.com; receiver= Original-Received: from mail-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 2F6301AA2D8 for ; Sun, 8 Nov 2020 12:03:11 +0100 (CET) Original-Received: by mail-io1-f42.google.com with SMTP id n12so6936251ioc.2 for ; Sun, 08 Nov 2020 03:03:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=iNV4hyO+CxsTdc5NMqbkQdJ36vi1olnhL1ttrGfSh/8=; b=WmvcWB4BL8EG8n0Mx3vYCfIYsjDY1RBjseLnoKCVkMh/32wx+V26B6ZPYRUWKvi8Na Nx1MmxpzkFSR5XV+Iot8WQSQkNQeyNAyQ2DYSiXsq/HJ+Y/bEG1O2iWt0ruzsqLa43Y+ 7j4JTov58S/XqbOuMsAXjA5Se5Rl7DNzUInPRMgjVrUhMCk76mK6iMzc1ooysyTtGzUw O+fPFqrLwWLHEDsuUb3sM6rhqcPKhgJHpwOYjb9mj4PP4S+oPRxmUiCg3rkKbyu1YJu8 D/YpbqkUtOd+d5uyXuN/feQO8qrF7JoCw+4kjM6DKeYUvIOZngyR9qctcXehIkrArE9D xYtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=iNV4hyO+CxsTdc5NMqbkQdJ36vi1olnhL1ttrGfSh/8=; b=S5OHc/BqHGCWA7yh+H6daKokCFMaV/d5mjPNq5fiKnnK62HxNGO+uJMIZncEMJjOpf CquugkuPz/69zDSVOU1O657GfKRaeQm4WZqWJYApvLFSqT0+4+OTcpqAz/L0BHC+xmeO a6W8AoQxvqZZqsQ3dAFo6mGbxMJBhViOUqE3d/vruh1CXJWt9mrf3Z/Ec3nvrl3sAST4 Tn3o96eQSLW6f0ux3faLm7XYC4WdvUuopVKLpFZr6yn4kpu7A7awjNkkMtCO4Z6DrpAx ONXYWUUHEsfArbfjH1OcrHT3Ie9SXuMt19wMzAdZ9W46by5jXLfcNZuUXLiDjqBKLvOt 9vdw== X-Gm-Message-State: AOAM530LSohOO6v5xplMuki7DEvzEasofSgRKK8NRQpIsPg3hbU4OLjr Y+5GHWl6zeUS0x4t0ril5oplqdjsJr6B4gscwesfJ0r2DV/ZXw== X-Google-Smtp-Source: ABdhPJzIMVzvg4BFlEtZ8CeTMfgb+Kfjh22V0rWVhzASTQcsVC65R3A10jxfWncux8W5vD58qUUEAnLxXmHUzIyNivo= X-Received: by 2002:a6b:fa1a:: with SMTP id p26mr6813664ioh.70.1604833389811; Sun, 08 Nov 2020 03:03:09 -0800 (PST) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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.io gmane.comp.tex.context:109373 Archived-At: --===============2302566592860241086== Content-Type: multipart/alternative; boundary="0000000000001f9dab05b39664dc" --0000000000001f9dab05b39664dc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, 8 Nov 2020 at 11:37, Pablo Rodriguez wrote: > On 11/8/20 11:18 AM, Sylvain Hubert wrote: > > Hi Pablo, > > > > thanks for the suggestion. Here's the minimal example which shows the > > difference: > > > > \definefontfamily[face][rm][dejavuserif] > > \starttext\switchtobodyfont[face, 24pt]=C9=91\stoptext > > > > this should warn: > > > > fonts > checking > char =C9=91 (U+00251) in font > > 'LatinModernMath-Regular-4' with id 10: missing > > Well, you are switching before setting up a body font. > > I don=E2=80=99t know whether this might be a bug in ConTeXt (see previous > report), but I would set up the body font always first: > > \definefontfamily[face][rm][dejavuserif] > \definefontfamily[deface][rm][dejavusans] > \setupbodyfont[deface] > \starttext a\switchtobodyfont[face, 24pt]=C9=91\stoptext > Thanks, it works! And I agree that it probably indicates the existence of a bug, since by changing "\setupbodyfont[deface]" to "\setupbodyfont[dejavu]" in your example, the problem reappears: \definefontfamily[face][rm][dejavuserif] \setupbodyfont[dejavu] \starttext a\switchtobodyfont[face, 24pt]=C9=91\stoptext Sylvain --0000000000001f9dab05b39664dc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, 8 Nov 2020 at 11:37, Pablo Rodriguez <oinos@gmx.es> wrote:
On 11/8/20 11:18 AM, Sylvain Hub= ert wrote:
> Hi Pablo,
>
> thanks for the suggestion. Here's the minimal example which shows = the
> difference:
>
> =C2=A0 =C2=A0 \definefontfamily[face][rm][dejavuserif]
> =C2=A0 =C2=A0 \starttext\switchtobodyfont[face, 24pt]=C9=91\stoptext >
> this should warn:
>
> =C2=A0=C2=A0=C2=A0 fonts =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 > check= ing > char =C9=91 (U+00251) in font
> 'LatinModernMath-Regular-4' with id 10: missing

Well, you are switching before setting up a body font.

I don=E2=80=99t know whether this might be a bug in ConTeXt (see previous report), but I would set up the body font always first:

=C2=A0 =C2=A0 \definefontfamily[face][rm][dejavuserif]
=C2=A0 =C2=A0 \definefontfamily[deface][rm][dejavusans]
=C2=A0 =C2=A0 \setupbodyfont[deface]
=C2=A0 =C2=A0 \starttext a\switchtobodyfont[face, 24pt]=C9=91\stoptext
<= /blockquote>

Thanks, it works!

= And I agree that it probably indicates the existence of a bug, since by cha= nging "\setupbodyfont[deface]" to "\setupbodyfont[dejavu]&qu= ot; in your example, the problem reappears:

=C2=A0= =C2=A0 \definefontfamily[face][rm][dejavuserif]
=C2=A0 =C2=A0 \s= etupbodyfont[dejavu]
=C2=A0 =C2=A0 \starttext a\switchtobodyfont[= face, 24pt]=C9=91\stoptext

Sylvain

--0000000000001f9dab05b39664dc-- --===============2302566592860241086== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============2302566592860241086==--