MathJax icon indicating copy to clipboard operation
MathJax copied to clipboard

[v2]'\bigstar' in 'tex' is normal, but in 'Gyre-Termes' it is italic

Open lhy666 opened this issue 6 years ago • 1 comments

in 'tex' image in 'Gyre-Termes' image

i hope it is all normal

lhy666 avatar Feb 18 '20 04:02 lhy666

The MathJax TeX font includes this character, but the Gyre-Termes font doesn't, so when you use that, MathJax has to fall back on your system fonts, hoping that one contains the character. While doing so, it tries to preserve the style and weight of the character being requested. In this case, \bigstar produces the MathML <mi>&#x2605;</mi>, and since it is a MathML mi element, that means that it will use mathvariant="italic" by default, since its content is a single character. That is why you are being an italic star.

The translation of \bigstar probably should be <mi mathvariant="normal">&#x2605;</mi> to make sure it is upright. There are a lot of similar characters, so a more thorough review needs to be done to get all the ones that should be upright when not in the selected font.

dpvc avatar Feb 20 '20 16:02 dpvc