Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Invalid glyph displayed for character #1994

Open
balagge opened this issue May 17, 2018 · 1 comment
Open

Bug: Invalid glyph displayed for character #1994

balagge opened this issue May 17, 2018 · 1 comment
Labels
Accepted Issue has been reproduced by MathJax team
Milestone

Comments

@balagge
Copy link

balagge commented May 17, 2018

Issue Summary

Character [U+2246 ≆ APPROXIMATELY BUT NOT ACTUALLY EQUAL TO] is displayed incorrectly by default.

Steps to Reproduce

E.g. in the online demo version at https://www.mathjax.org/#demo the following MathML renders all 3 occurrences (verbatim, hexadecimal / named entity) of the character incorrectly.

<math>
  <mi>a</mi>
  <mo>≆</mo>
  <mi>b</mi>
  <mo>&#x2246;</mo>
  <mi>c</mi>
  <mo>&simne;</mo>
  <mi>d</mi>
</math>

Expected rendering

The expected / correct glyph should be similar to the example below:

http://www.fileformat.info/info/unicode/char/2246/approximately_but_not_actually_equal_to.png

Actual rendering

What is actually displayed is the glyph of another character, [U+2247 ≇ NEITHER APPROXIMATELY NOR ACTUALLY EQUAL TO]:

http://www.fileformat.info/info/unicode/char/2247/neither_approximately_nor_actually_equal_to.png

Technical details

  • MathJax Version: current demo version
  • Client OS: Ubuntu 14.04
  • Browser: Firefox / Chromium
  • Renderer: HTML-CSS, Common HTML, SVG

Note: the preview HTML and the MathML renderer (if using Firefox, which has built-in MathML rendering) displays a correct glyph. So this is probably a font error.

@balagge balagge changed the title Bug: Bug: Invalid glyph displayed for character May 17, 2018
@dpvc
Copy link
Member

dpvc commented May 22, 2018

Indeed, the glyph is in the wrong location in the font. Unfortunately, the MathJax TeX font doesn't contain a glyph for U+2246, so (once the glyph is put in the right location), you would have to rely on the user's installed system fonts to obtain U+2246 if you are using the default MathJax TeX fonts.

Alternatively, you could specify the STIX fonts (for HTML-CSS and SVG output), or the LatinModern fonts if you want the look to be that of the Computer Modern fonts.

@dpvc dpvc added the Accepted Issue has been reproduced by MathJax team label May 22, 2018
@dpvc dpvc modified the milestone: MathJax v2.7.5 Jul 6, 2018
@dpvc dpvc modified the milestones: v2.7.8, A future font release Feb 17, 2020
@dpvc dpvc modified the milestones: A future font release, 3.3.0 Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Issue has been reproduced by MathJax team
Projects
None yet
Development

No branches or pull requests

2 participants