From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/109365 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 11:18:14 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6762684772305444859==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9053"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 08 11:20:42 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 1kbhoQ-0002Ff-23 for gctc-ntg-context-518@m.gmane-mx.org; Sun, 08 Nov 2020 11:20:42 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 71CBB1A9E4E; Sun, 8 Nov 2020 11:18:31 +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 kLg5wwVGmZx3; Sun, 8 Nov 2020 11:18:29 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AA2BB1A9EA3; Sun, 8 Nov 2020 11:18:29 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D72D31A9E4E for ; Sun, 8 Nov 2020 11:18:28 +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 TtNxT9Vh_7c3 for ; Sun, 8 Nov 2020 11:18:28 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.172; helo=mail-il1-f172.google.com; envelope-from=champignoom@gmail.com; receiver= Original-Received: from mail-il1-f172.google.com (mail-il1-f172.google.com [209.85.166.172]) (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 E324E1A9CE5 for ; Sun, 8 Nov 2020 11:18:27 +0100 (CET) Original-Received: by mail-il1-f172.google.com with SMTP id x20so5632928ilj.8 for ; Sun, 08 Nov 2020 02:18:27 -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=+4E5bzC4iFlzBlxNnWJj4qC2JDOCML40z8MPLOrZ6hA=; b=bZfO3VnUXRXqIdC4nCS3eiuQNp/dLhCFvL345hqvynvJpNlylW3LbsYQCpWET4b3Ib i4fDjXgtoOzVHROzLOuyH2FBd3a7PyfzQIDkJIKME/NYp9ySumI0xBiqfBJA0zQHcQ2k xiv2Rz5fZdsGUgdJn7CN1d7H0D/tdQ4rtMa6hFg/LTRk+6sEHUc9NquzuLhC13SN3BP6 3j4JGZyYGhqz29XjEllJtnStc1EkxkzzZqIZQYo6EeTX9cu+/OwPAsNEXBTCOK1PzHOt A8Bt5oGmSMGEgSKPdGh0dyZ5iN//bzuWeivf7F+D6CHGqovcXo13OVAFR76Ui0IQEvSd 71uw== 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=+4E5bzC4iFlzBlxNnWJj4qC2JDOCML40z8MPLOrZ6hA=; b=R/CqzadxA8ba9iLAyf8tmXq62ubElENI7buli3Rms1Ga7CdUTD5RM2Q9o80oRbc7C1 uAEOWdrW/VQMCtXW/zJFtHHg/KtsBpD5j9DN80yh+A6Ubm2aVYGTydaIkVnPcocfOft6 G2ucoBiq8pqk1btHUxcekWrHCf3a1vXNturNKTXGPlYNVHXeaaLTOMqQceHPzBUPmMkn PNXTC0qg2XBtTFhd5LgFuw/OioIu1RDQrIxy8wwMv51SomYnbyEUFUCahADYvXPXrqwV oqErRN/b9t8Z8acN2d8RPygLNRx5irBBPL4Qoz2fwziHKxkdJIL67unGynBQPWEjpjl1 7C9A== X-Gm-Message-State: AOAM530HN9cbozwqalkby1TyX0qlyJ/hmyMHpHVGJ4Efa5uL47eEaoo0 hqKN8vnfT2jUkRJPXEDccbNc5mLCvfzjhux4afpTBzhwTotitQ== X-Google-Smtp-Source: ABdhPJxf3JW22mmuSUmIkNxzAMhP8tZnKwaskpzCFvt8NdRkIZ1N1gkXUrwefEGPuePX6veWeGmHhEuX0O1vAIW1ADU= X-Received: by 2002:a05:6e02:df1:: with SMTP id m17mr6771970ilj.70.1604830706036; Sun, 08 Nov 2020 02:18:26 -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:109365 Archived-At: --===============6762684772305444859== Content-Type: multipart/alternative; boundary="00000000000028754505b395c4c7" --00000000000028754505b395c4c7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 while \definefontfamily[face][rm][dejavuserif] \starttext\switchtobodyfont[face, 24pt]=C9=91\stoptext produces the expected result despite a harmless warning. Sylvain On Sun, 8 Nov 2020 at 10:41, Pablo Rodriguez wrote: > On 11/8/20 2:35 AM, Sylvain Hubert wrote: > > Dear List, > > > > after hours of debugging, I finally found out that > > \switchtobodyfont[face, 20pt] does NOT behave the same with > > \switchtobodyfont[face]\switchtobodyfont[20pt]. In my case the latter i= s > > the correct one, while the former does nothing but falling back to > > latinmodern. > > > > Does anyone know when or why \switchtobodyfont behaves differently with > > splitted and joined parameters? > > Hi Sylvain, > > as a general rule, it helps when there is a minimal sample that provides > the problematic behavior. > > I don=E2=80=99t get diffferent results: > > \definefontfamily[mainface][rm][TeX Gyre Pagella] > \definefontfamily[face][rm][TeX Gyre Heros] > \setupbodyfont[mainface] > \startbuffer > In my case, the latter is the correct one, while the former does > nothing but falling back to latinmodern.\par > \stopbuffer > > \starttext > \getbuffer > \switchtobodyfont[face]\switchtobodyfont[20pt] > \getbuffer > \switchtobodyfont[face, 20pt] > \getbuffer > \stoptext > > Correct the sample to show what I got wrong from your message. > > Pablo > -- > http://www.ousia.tk > > _________________________________________________________________________= __________ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > _________________________________________________________________________= __________ > --00000000000028754505b395c4c7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Pablo,

thanks for the sug= gestion. 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 > checking > char =C9= =91 (U+00251) in font 'LatinModernMath-Regular-4' with id 10: missi= ng

while

=C2=A0 =C2= =A0 \definefontfamily[face][rm][dejavuserif]
=C2=A0 =C2=A0 \starttext\sw= itchtobodyfont[face, 24pt]=C9=91\stoptext

produces= the expected result despite a harmless warning.

S= ylvain

On Sun, 8 Nov 2020 at 10:41, Pablo Rodriguez <oinos@gmx.es> wrote:
On 11/8/20 2:35 AM, Sylvain Hubert = wrote:
> Dear List,
>
> after hours of debugging, I finally found out that
> \switchtobodyfont[face, 20pt] does NOT behave the same with
> \switchtobodyfont[face]\switchtobodyfont[20pt]. In my case the latter = is
> the correct one, while the former does nothing but falling back to
> latinmodern.
>
> Does anyone know when or why \switchtobodyfont behaves differently wit= h
> splitted and joined parameters?

Hi Sylvain,

as a general rule, it helps when there is a minimal sample that provides the problematic behavior.

I don=E2=80=99t get diffferent results:

=C2=A0 \definefontfamily[mainface][rm][TeX Gyre Pagella]
=C2=A0 \definefontfamily[face][rm][TeX Gyre Heros]
=C2=A0 \setupbodyfont[mainface]
=C2=A0 \startbuffer
=C2=A0 In my case, the latter is the correct one, while the former does
=C2=A0 nothing but falling back to latinmodern.\par
=C2=A0 \stopbuffer

=C2=A0 \starttext
=C2=A0 \getbuffer
=C2=A0 \switchtobodyfont[face]\switchtobodyfont[20pt]
=C2=A0 \getbuffer
=C2=A0 \switchtobodyfont[face, 20pt]
=C2=A0 \getbuffer
=C2=A0 \stoptext

Correct the sample to show what I got wrong from your message.

Pablo
--
http:/= /www.ousia.tk
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--00000000000028754505b395c4c7-- --===============6762684772305444859== 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== --===============6762684772305444859==--