Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Remap | in STIX font data [was: "Bad alignement of \vert"] #1154
By installing on ubuntu the packages fonts-mathjax* the correct font for | is used and the behavior is as expected. I thought that MathJay download automatically the woff fonts as needed but it's apparently not the case! However, with STIX fonts, the behavior is still uncorrect on ubuntu.
The vertical line character "|" in the STIX fonts doesn't descend below the baseline, so when the STIX fonts are used, absolute values look like the ones in your first two images. The third one shows the MathJax web font, in which the vertical line does extend below the baseline. You have the STIX fonts installed locally on your Ubuntu machine, but not on the Windows machine, which accounts for the difference in font choice. MathJax will use the locally installed STIX fonts in preference to the web fonts (for performance reasons), unless you change the configuration to prevent that. On the other hand, it will use locally installed MathJax fonts in preference to local STIX fonts, which is why it changed when you installed the MathJax fonts locally. MathJax only uses web-based fonts if you don't have either MathJax or STIX fonts installed locally.
See the discussion on the MathJax User's Forum for a work-around if you are managing your own pages.