ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Fallbacks in text font interfere with math accents
@ 2023-06-10  8:05 Henning Hraban Ramm via ntg-context
  2023-06-10 17:46 ` Mikael Sundqvist via ntg-context
  0 siblings, 1 reply; 4+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2023-06-10  8:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Henning Hraban Ramm

[-- Attachment #1: Type: text/plain, Size: 1171 bytes --]

Hi, this is probably for Hans & Mikael, but maybe someone else has a hint:

If I set a fallback for my body font to catch all missing characters, 
some math accents get replaced by small bold uppercase characters (I 
found hat by K and ring by T so far).

I tried [fallbacks=] for math to no avail.

My example uses Cambria, but it’s the same with other fonts.

(BTW, in \bar{b} with Libertinus, the bar looks too high.)

Hraban


\definefontfallback[symbolaFB]
   [file:symbola.otf]
   [0x00000-0xFFFFF]
   [check=no,force=no]

\definefontfallback[arialFB]
   [name:arialunicodems]
   [0x00000-0xFFFFF]
   [check=no,force=no,rscale=0.85]

\starttypescript [contextstart]
   \definetypeface [contextstart] [rm] [serif] [cambria]
	[default][fallbacks=symbolaFB]
   \definetypeface [contextstart] [ss] [sans]  [segoe]
	[default][fallbacks=arialFB]
   \definetypeface [contextstart] [tt] [mono]  [modern]
	[default][fallbacks=arialFB]
   \definetypeface [contextstart] [mm] [math]  [cambria]
	[default]
\stoptypescript

\setupbodyfont[contextstart,12pt]

\starttext

\im{\hat{H} \widehat{HAT} \bar{b} \widebar{bar}}

\im{\mathring{+} \mathring{±} \mathring{x}}

\stoptext

[-- Attachment #2: mathtest.tex --]
[-- Type: application/x-tex, Size: 4508 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] 4+ messages in thread

end of thread, other threads:[~2023-06-14 16:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-10  8:05 [NTG-context] Fallbacks in text font interfere with math accents Henning Hraban Ramm via ntg-context
2023-06-10 17:46 ` Mikael Sundqvist via ntg-context
2023-06-10 19:33   ` Henning Hraban Ramm via ntg-context
2023-06-14 16:52     ` [NTG-context] SOLVED: " Henning Hraban Ramm 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).