-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Remap | in STIX font data [was: "Bad alignement of \vert"] #1154
Comments
Hm. I'm not seeing anything unusual in that sample (i.e., it matches TeX behavior for me). Can you share a screenshot and more details on your system (browser, OS versions etc.). |
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. |
re-opening since this is definitely a bug. Can you tell us which version of the STIX fonts you have installed on your system? |
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. |
@pkra, I'm not sure I'd call it "definitely" a bug, as whether the vertical line descends below the baseline is a font-design decision. There is nothing that says absolute values must look like they do in the TeX fonts (though I do prefer it that way myself). |
@dpvc yes, sorry. I should've written "I want to understand what's going on" -- thanks for clarifying. |
We can think about whether we should make the remapping indicated in the link I gave above be the default (if the character is used in an |
OK thank you for the explanation and the workaround, now I understand what's going on. |
@dpvc we could record it but we should probably wait for STIX 2.0 to come out |
renamed and added to font milestone. |
The |
==> Merged. |
==> In testsuite MathMLToDisplay/Characters/issue1154.html |
When typing
$\vert x \vert$
the vertical line is align to the baseline and according to TeX this should be lower.See an example here: http://jsfiddle.net/AqDCA/541/
The text was updated successfully, but these errors were encountered: