Re: [NTG-context] problem with Segoe Ui Symbol as fallback font
![](https://secure.gravatar.com/avatar/e475aa55f9187c604a36aafb2e520602.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/e475aa55f9187c604a36aafb2e520602.jpg?s=120&d=mm&r=g)
The problem is that now that \bf, \it and so on stopped working outside math mode. A workaround is to add \rm after \starttext. Maybe the developers can shed some light :) Please find MWE below. Cheers, Jacob \definefontfallback[cal-fallback][name:modern][uppercasescript,lowercasescript] \starttypescript[mainface] \definetypeface[mainface][rm][serif][pagella][default] \definetypeface[mainface][ss][sans] [modern] [default][rscale=1.075] \definetypeface[mainface][tt][mono] [modern] [default][rscale=1.075] \definetypeface[mainface][mm][math] [pagella][default][fallbacks=cal-fallback] \stoptypescript \definefontfamily[mainface][mm][mainface] \definefontfamily[mainface][rm][pagella][bf=style:bold] \usetypescript[mainface] \setupbodyfont[mainface] \startbuffer The quick brown fox jumps over the lazy dog \stopbuffer \starttext % \rm % works {\rm \getbuffer}\par {\ss \getbuffer}\par {\tt \getbuffer}\par {\bf \getbuffer}\par {\it \getbuffer}\par {\sl \getbuffer}\par {\bi \getbuffer}\par {\bs \getbuffer}\par {\sc \getbuffer} Should be Palatino: $x + y$ $f({\bi x})$ Should be Latin Modern: ${\cal I}$ $\mathcal{I}$ $\mathscr{I}$ \stoptext
![](https://secure.gravatar.com/avatar/e5aa6984b53b8925e405ebbdbc051ad9.jpg?s=120&d=mm&r=g)
Am 04.01.23 um 14:29 schrieb Jacob Kauffmann via ntg-context:
The problem is that now that \bf, \it and so on stopped working outside math mode. A workaround is to add \rm after \starttext.
\setupbodyfont[mainface]
Did you try \setupbodyfont[mainface,rm] ? Hraban
![](https://secure.gravatar.com/avatar/ed6f43113e3f1cee031ebd13654fc703.jpg?s=120&d=mm&r=g)
On 1/4/2023 2:29 PM, Jacob Kauffmann via ntg-context wrote:
The problem is that now that \bf, \it and so on stopped working outside math mode. A workaround is to add \rm after \starttext.
Maybe the developers can shed some light :) \definefontfeature[mathextra][moderntocalligraphic=yes]
you can peek inti pagella-math.lfg and common-math.lfg fallbacks in math are sort of gone in lmtx as it's only asking for troubles but we can overlay from other fonts in lfg files Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Henning Hraban Ramm
-
Jacob Kauffmann