* problem with Segoe Ui Symbol as fallback font @ 2022-11-07 18:42 Henning Hraban Ramm via ntg-context 0 siblings, 0 replies; 5+ messages in thread From: Henning Hraban Ramm via ntg-context @ 2022-11-07 18:42 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Henning Hraban Ramm [-- Attachment #1: Type: text/plain, Size: 1082 bytes --] I’d like to set Segoe UI Symbol as fallback for all missing glyphs. But it doesn’t work, I get an error like registered function call [1145]: ...-14/tex/texmf-context/tex/context/base/mkxl/math-act.lmt:2339: attempt to perform arithmetic on a nil value (field 'depth') stack ... even if there’s no fallback enabled for the math font. \definefontfallback[segoeFB] [name:segoeuisymbol] [0x00300-0x003FF,0x02100-0x02800] [check=yes,force=no] That used to work, at least until version 2022-09-18. It’s completely irregular which ranges throw an error: 0x03000-0x20000 runs 0x02000-0x03000 doesn’t 0x02200-0x027FF doesn’t And the fallbacks also don’t work, even if there’s no error. It seems to depend on the font – I get errors with Segoe UI Symbol, but not with EmojiOneColor or Symbola. I checked with font versions 5.0 and 5.01, don’t have newer ones. Does it work with current versions? Also, a list of fallbacks doesn’t work (I’d like to replace single characters from different fonts); is it supposed to? test file attached. Hraban [-- Attachment #2: fontfallbacktest.tex --] [-- Type: application/x-tex, Size: 2150 bytes --] [-- Attachment #3: 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: problem with Segoe Ui Symbol as fallback font @ 2023-01-04 12:32 Jacob Kauffmann via ntg-context 2023-01-04 13:29 ` Jacob Kauffmann via ntg-context 0 siblings, 1 reply; 5+ messages in thread From: Jacob Kauffmann via ntg-context @ 2023-01-04 12:32 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Jacob Kauffmann [-- 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: problem with Segoe Ui Symbol as fallback font 2023-01-04 12:32 Jacob Kauffmann via ntg-context @ 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 0 siblings, 2 replies; 5+ messages in thread From: Jacob Kauffmann via ntg-context @ 2023-01-04 13:29 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Jacob Kauffmann [-- Attachment #1.1.1: Type: text/plain, Size: 1207 bytes --] 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 [-- Attachment #1.1.2: Type: text/html, Size: 3460 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: problem with Segoe Ui Symbol as fallback font 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 1 sibling, 0 replies; 5+ messages in thread From: Henning Hraban Ramm via ntg-context @ 2023-01-04 14:49 UTC (permalink / raw) To: Jacob Kauffmann via ntg-context; +Cc: Henning Hraban Ramm 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: problem with Segoe Ui Symbol as fallback font 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 1 sibling, 0 replies; 5+ messages in thread From: Hans Hagen via ntg-context @ 2023-01-04 14:49 UTC (permalink / raw) To: Jacob Kauffmann via ntg-context; +Cc: Hans Hagen 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 ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-01-04 14:49 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-11-07 18:42 problem with Segoe Ui Symbol as fallback font Henning Hraban Ramm via ntg-context 2023-01-04 12:32 Jacob Kauffmann via ntg-context 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
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).