ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Henning Hraban Ramm <texml@fiee.net>
Subject: [NTG-context] Fallbacks in text font interfere with math accents
Date: Sat, 10 Jun 2023 10:05:51 +0200	[thread overview]
Message-ID: <8473d42b-4482-1fa9-b229-f4a0f23b28f7@fiee.net> (raw)

[-- 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
___________________________________________________________________________________

             reply	other threads:[~2023-06-10  8:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-10  8:05 Henning Hraban Ramm via ntg-context [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8473d42b-4482-1fa9-b229-f4a0f23b28f7@fiee.net \
    --to=ntg-context@ntg.nl \
    --cc=texml@fiee.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).