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

* Re: [NTG-context] Fallbacks in text font interfere with math accents
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Mikael Sundqvist via ntg-context @ 2023-06-10 17:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Mikael Sundqvist

Hi,

On Sat, Jun 10, 2023 at 10:06 AM Henning Hraban Ramm via ntg-context
<ntg-context@ntg.nl> wrote:
>
> 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.)

I leave the font fallbacks to Hans or somebody else, but for the \bar
one can argue that the "305 glyph in Libertinus Math sits too high.
This is adjusted for in the goodie file in the next upload.

/Mikael
___________________________________________________________________________________
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

* Re: [NTG-context] Fallbacks in text font interfere with math accents
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2023-06-10 19:33 UTC (permalink / raw)
  To: Mikael Sundqvist via ntg-context; +Cc: Henning Hraban Ramm

Am 10.06.23 um 19:46 schrieb Mikael Sundqvist via ntg-context:
> Hi,
> 
> On Sat, Jun 10, 2023 at 10:06 AM Henning Hraban Ramm via ntg-context
> <ntg-context@ntg.nl> wrote:
>>
>> 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.)
> 
> I leave the font fallbacks to Hans or somebody else, but for the \bar
> one can argue that the "305 glyph in Libertinus Math sits too high.
> This is adjusted for in the goodie file in the next upload.

I could fix a few math accents (e.g. widebar) by limiting my 
replacements to necessary glyphs, but many other problems remain (e.g. 
breve, check, dot, widehat). It also affects the sizing of limiters and 
e.g. underbraces.

Why do font fallbacks for non-math fonts affect math at all?

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] 4+ messages in thread

* Re: [NTG-context] SOLVED: Fallbacks in text font interfere with math accents
  2023-06-10 19:33   ` Henning Hraban Ramm via ntg-context
@ 2023-06-14 16:52     ` Henning Hraban Ramm via ntg-context
  0 siblings, 0 replies; 4+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2023-06-14 16:52 UTC (permalink / raw)
  To: Henning Hraban Ramm via ntg-context; +Cc: Henning Hraban Ramm

Hans sent me a fix (font-mat.mklx), I guess it’ll be in the next upload.

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] 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).