Re: [NTG-context] problem with Segoe Ui Symbol as fallback font
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
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
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
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