From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/116787 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jacob Kauffmann via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: problem with Segoe Ui Symbol as fallback font Date: Wed, 4 Jan 2023 13:32:49 +0100 Message-ID: <597E88F4-F59B-4B8A-BAC2-EE1B0FFC091E@me.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Content-Type: multipart/mixed; boundary="===============5204917784730671314==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9369"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Jacob Kauffmann To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 04 13:38:55 2023 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 1pD32l-00029c-0B for gctc-ntg-context-518@m.gmane-mx.org; Wed, 04 Jan 2023 13:38:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 18EB63803F6; Wed, 4 Jan 2023 13:38:27 +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 2Za_8hLi2nLN; Wed, 4 Jan 2023 13:38:25 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3F0693803F5; Wed, 4 Jan 2023 13:38:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5ADCF3803E6 for ; Wed, 4 Jan 2023 13:38:24 +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 aoEfpBdmvw0l for ; Wed, 4 Jan 2023 13:38:23 +0100 (CET) Received-SPF: Softfail (mailfrom) identity=mailfrom; client-ip=130.149.7.70; helo=mailrelay.tu-berlin.de; envelope-from=jacobkauffmann@me.com; receiver= X-Greylist: delayed 328 seconds by postgrey-1.36 at zapf.ntg.nl; Wed, 04 Jan 2023 13:38:22 CET Original-Received: from mailrelay.tu-berlin.de (mailrelay.tu-berlin.de [130.149.7.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id EEA483801D0 for ; Wed, 4 Jan 2023 13:38:22 +0100 (CET) Original-Received: from SPMA-04.tubit.win.tu-berlin.de (localhost.localdomain [127.0.0.1]) by localhost (Email Security Appliance) with SMTP id 9D7FA974101_3B571F5B for ; Wed, 4 Jan 2023 12:32:53 +0000 (GMT) Original-Received: from mail.tu-berlin.de (bulkmail.tu-berlin.de [141.23.12.143]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "exchange.tu-berlin.de", Issuer "DFN-Verein Global Issuing CA" (verified OK)) by SPMA-04.tubit.win.tu-berlin.de (Sophos Email Appliance) with ESMTPS id 78FBC97143F_3B571F4F for ; Wed, 4 Jan 2023 12:32:52 +0000 (GMT) X-Mailer: Apple Mail (2.3696.100.31) X-SASI-RCODE: 200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; h=from:content-type:mime-version:subject:message-id:date:to; s=dkim-tub; bh=a9RYbwFGVQnMb6Jy2rSRtpgF+H1kF/BNVcj3WABpoHw=; b=UYSUdxXX3dek9jJrXWGGKudmNUmqk7zJI5VkIhWo0uT84Tv9h5dy2rWAf9iESddOaKzJhlY783VarzSU0C9qgamjJLoGPq8GrJtHJKeA7M/JpKb6FTnw8Pc4kHmlGzXTP7nhBa0TDD+umbx9YnTYi14FGNeQNqjs0xEZyjeNLtc= 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:116787 Archived-At: --===============5204917784730671314== Content-Type: multipart/signed; boundary="Apple-Mail=_102F9F12-B4CB-42FA-9BC1-A0CA44188249"; protocol="application/pgp-signature"; micalg=pgp-sha256 --Apple-Mail=_102F9F12-B4CB-42FA-9BC1-A0CA44188249 Content-Type: multipart/alternative; boundary="Apple-Mail=_A7FC0597-2260-41C0-A60C-AB7B9F340E08" --Apple-Mail=_A7FC0597-2260-41C0-A60C-AB7B9F340E08 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi Hraban, I had a similar problem with math fallbacks (no errors, fallbacks not = used) and just found a solution. Please find a small example below. I don't understand why we need the line \definefontfamily, but it's = necessary for the fallbacks to work. Also, it stops working when I do \setupbodyfont[mainface,rm]. Cheers, Jacob = \definefontfallback[cal-fallback][name:modern][uppercasescript,lowercasesc= ript] \starttypescript[mainface] \definetypeface[mainface][rm][serif][palatino][default] \definetypeface[mainface][ss][sans] [modern] [default][rscale=3D1.075] \definetypeface[mainface][tt][mono] [modern] [default][rscale=3D1.075] \definetypeface[mainface][mm][math] = [palatino][default][fallbacks=3Dcal-fallback] \stoptypescript \definefontfamily[mainface][math][] \usetypescript[mainface] \setupbodyfont[mainface] \starttext {\rm \input ward } {\ss \input ward } {\tt \input ward } Should be Palatino: $x + y$ Should be Latin Modern: ${\cal I}$ $\mathcal{I}$ $\mathscr{I}$ \stoptext --Apple-Mail=_A7FC0597-2260-41C0-A60C-AB7B9F340E08 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Hi = Hraban,

I had a = similar problem with math fallbacks (no errors, fallbacks not used) and = just found a solution.
Please find a small example = below.

I don't = understand why we need the line \definefontfamily, but it's necessary = for the fallbacks to work.
Also, it stops working = when I do \setupbodyfont[mainface,rm].

Cheers,
Jacob

\definefontfallback[cal-fallback][name:modern][uppercasescript,= lowercasescript]

\starttypescript[mainface]
  = \definetypeface[mainface][rm][serif][palatino][default]
  = \definetypeface[mainface][ss][sans] [modern] =  [default][rscale=3D1.075]
  \definetypeface[mainface][tt][mono] = [modern]  [default][rscale=3D1.075]
  \definetypeface[mainface][mm][math] = [palatino][default][fallbacks=3Dcal-fallback]
\stoptypescript

\definefontfamily[mainface][math][]
\usetypescript[mainface]
\setupbodyfont[mainface]

\starttext
{\rm \input ward }

{\ss \input ward = }

{\tt \input ward }

Should be Palatino: $x + = y$ 

Should be Latin Modern: ${\cal I}$ $\mathcal{I}$ = $\mathscr{I}$
\stoptext
= --Apple-Mail=_A7FC0597-2260-41C0-A60C-AB7B9F340E08-- --Apple-Mail=_102F9F12-B4CB-42FA-9BC1-A0CA44188249 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE8pbthyHh8ESBdtnk8cwT0RikQ/IFAmO1cfIACgkQ8cwT0Rik Q/Imlg/9Hvgyjt6z5GbH1RNBBtgz8yAit1nAtgZuwWsjP7dCBHryS9Pa/iDQb+7/ gbhKCwiS3hDbfW1pXNpU2W1SRM2ZOtrdUth2CvgE5cJMT3793GxB1VoHOlMiTlpk WWDgVMr7IdZwfCr9BKYHJjwTxs62RNH/Xu8gDb8LQ1IY9Yk0WEBy5DEhbA7u/pjP Y8M5pirbwFeWK1Y/8qBKZvaITE0o9OT4QjJ5vievKjypeuswHCX+Qbrcv8TD076r 5HbkGyHtXuBR/fv2DtkjZZJF76VKohdzYqboHDhXs28WDQV16mVcvAfh4KNtUHw6 DgQjZyBlWCdOLpUfoNTaGZqXzAXshV+CW2qfRDCfzL6eA7TNE4ipQbWXDgbYlw+j SIRrMSdQko0qYx7kYhnk5ZUQb6wIf+w5Mv456nQUKsg5d8lSev5d6lOEANM9GJJw sBYhwDZRRVep2F+VYJU09YuSt+819ZxOsh26KVda/xLMKUebBSNHsp/42GB4jVTR JlhDzyyLKnwXU0tk58bZ5CYnmyvR08xOrYB3yiryKriFJXiZCFjo4P3crW9TuyaT n/+xH7R1Ac7MIqNtd/yjtyQUdmgpopEA4SOvLg20+l3T+RTSujqnkjF/LHuV3l5U uDz4+LHpzgSFXXo6kAW5v3ptz2ufxCnv8VHel+B7c3DiptnISf8= =me4N -----END PGP SIGNATURE----- --Apple-Mail=_102F9F12-B4CB-42FA-9BC1-A0CA44188249-- --===============5204917784730671314== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============5204917784730671314==--