-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
STIX-Web font data for stretchy integral is incorrect #1092
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
Comments
(From the User Group posting) The MathJax fonts don't include the needed characters to make a stretched integral sign, so the integral is not one of the characters that MathJax will stretch. The STIX-Web font does include the needed characters, so you could switch to that font. Unfortunately, there is an error in the data for the stretchy integral in that font, so you would need to include some configuration to fix that. You could put <script type="text/x-mathjax-config">
MathJax.Hub.Config({
"HTML-CSS": {fonts: ["STIX-Web"]},
"SVG": {fonts: ["STIX-Web"]}
});
(function () {
function FixStretchyIntegral(renderer) {
var FONTDIR = "[MathJax]/jax/output/"+renderer+"/fonts/STIX-Web";
MathJax.Hub.Register.LoadHook(FONTDIR+"/fontdata.js",function () {
MathJax.OutputJax[renderer].FONTDATA.DELIMITERS[0x222B].dir = "V";
});
MathJax.Hub.Register.LoadHook(FONTDIR+"/fontdata-extra.js",function () {
var FONTDATA = MathJax.OutputJax[renderer].FONTDATA;
FONTDATA.DELIMITERS[0x222B].dir = "V";
FONTDATA.DELIMITERS[0x222B].stretch.ext = FONTDATA.DELIMITERS[0x222B].stretch.rep;
});
}
FixStretchyIntegral("HTML-CSS");
FixStretchyIntegral("SVG");
})();
</script> in your file just before the script that loads MathJax.js itself. That will correct the data when the font data files are loaded, so that stretchy integrals will stretch properly. |
…and SVG, and add it so local STIX data. Resolves issue mathjax#1092.
The |
==> Merged. |
==> In testsuite MathMLToDisplay/Characters/issue1092.html |
The integral is marked as a horizontal stretchy character rather than a vertical one, so integrals don't stretch properly for STIX-Web. This affects both HTML-CSS and SVG. The local STIX font doesn't include the integral as stretchy at all (even though it could).
The text was updated successfully, but these errors were encountered: