From: Jacob Kauffmann via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Jacob Kauffmann <jacobkauffmann@me.com>
Subject: Re: problem with Segoe Ui Symbol as fallback font
Date: Wed, 4 Jan 2023 13:32:49 +0100 [thread overview]
Message-ID: <597E88F4-F59B-4B8A-BAC2-EE1B0FFC091E@me.com> (raw)
[-- Attachment #1.1.1: Type: text/plain, Size: 1038 bytes --]
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=1.075]
\definetypeface[mainface][tt][mono] [modern] [default][rscale=1.075]
\definetypeface[mainface][mm][math] [palatino][default][fallbacks=cal-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
[-- Attachment #1.1.2: Type: text/html, Size: 2893 bytes --]
[-- Attachment #1.2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2023-01-04 12:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-04 12:32 Jacob Kauffmann via ntg-context [this message]
2023-01-04 13:29 ` Jacob Kauffmann via ntg-context
2023-01-04 14:49 ` Henning Hraban Ramm via ntg-context
2023-01-04 14:49 ` Hans Hagen via ntg-context
-- strict thread matches above, loose matches on Subject: below --
2022-11-07 18:42 Henning Hraban Ramm via ntg-context
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=597E88F4-F59B-4B8A-BAC2-EE1B0FFC091E@me.com \
--to=ntg-context@ntg.nl \
--cc=jacobkauffmann@me.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).