-
Notifications
You must be signed in to change notification settings - Fork 41
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
Overhaul the STIX Two Math MATH table #184
Comments
(1) : the math alphanumeric characters do not have typical spacing and no general kerning. They are spaced to work as individual elements in math equations—subject to the special spacing and cut-in kerning models of the MS MATH table model. The problem here is that the italics correction property in that model is only available to the upper right quadrant of a glyph, which means that for any descending slanted glyph the lower left quadrant spacing has to be built into the basic sidebearing settings, otherwise the descender may collide with delimiters or other nearby shapes. We’ll definitely review this in the v2.20 MATH table work to see if we can determine a better approach. (2) : This is really odd. I am unsure why the bar height is jumping around so much. Will definitely review and see if I can find the data point that determines what the math handler does. (3) : Yes, will review. Can’t remember offhand if this is a MATH table setting or something that the handler does algorithmically. (4) : Noted, and agreed. |
Another spacing issue that was first reported here affects the placement of the root index: both numbers and letters appear too close to the root symbol and in some cases they tent do overlap as shown by this MWE:
Compared to Latin Modern Math, the index appears to be a bit too skewed to the left as well: These tests were made with STIX Two Text and Math 2.12 available in TeX Live 2021. |
The issue with position of radical degree has also been reported here as Issue 206. The trouble we are having resolving this issue is that in the MS MATH table editor everything looks fine, but we are seeing very inconsistent results in different environments, both with regard to scaling and positioning of the radical degree index. [See various images in that other issue.] So I don’t actually know how to ‘fix’ the issue at the font level (although one thought I have that would improve the TeX Live 2021 outcome you illustrate would be to simply shorten the left tick of the radical sign glyph slightly). |
We were able to resolve a similar inconsistency with the implementation of the MathKern table because the kerning algorithm is spelled out in reasonable detail at https://docs.microsoft.com/en-us/typography/opentype/spec/math#mathkerninfo-table. I can't find anything as explicit for typesetting radicals, which makes it hard to figure out what the Unicode-aware TeX engines are doing wrong. @tiroj : Maybe we can get our friends at Microsoft to give us some hints about the right way to do these calculations? |
Review and improve the MATH table, especially but not restricted to the MathKern table (especially as it applies to attachment of superscripts and subscripts) and MathTopAccentAttachment table (which controls attachment of math accents to base characters) and the MathConstants (e.g., fractionNumeratorShiftUp, fractionDenominatorShiftDown, stackTopShiftUp).
Related issues:
The text was updated successfully, but these errors were encountered: