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

[MATH] Application of italics correction is not fully documented #1140

Open
khaledhosny opened this issue Mar 3, 2024 · 0 comments
Open
Assignees

Comments

@khaledhosny
Copy link

The spec has the following text:

Italics correction can be used in the following situations:

  • When a run of slanted characters is followed by a straight character (such as an operator or a delimiter), the italics correction of the last glyph is added to its advance width.
  • When positioning limits on an N-ary operator (e.g., integral sign), the horizontal position of the upper limit is moved to the right by ½ of the italics correction, while the position of the lower limit is moved to the left by the same distance.
  • When positioning superscripts and subscripts, their default horizontal positions are also different by the amount of the italics correction of the preceding glyph.

The second point documents the special behavior of applying italics correction to N-ary operator limits above and below it. It does not mention what happens when the limits are positioned in the super and subscript position, and one would assume that the third point would apply in this case.

But the third point is rather vaguely worded, but probably it relies on the explanation when discussing MathKernInfo.

It probably makes since to expand slight about how italics correction is applied for superscript and subscript horizontal position.

Testing also shows that Microsoft Word will not change the horizontal position of the superscript of N-ary operator, and will move the horizontal position of the subscript to the right by the amount of italics correction. This is basically the opposite of what happens when italics correction is applied to other glyphs, so it should be explicitly documented.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

@khaledhosny khaledhosny changed the title Application of italics correction is not fully documented [MATH] Application of italics correction is not fully documented Mar 3, 2024
@PeterCon PeterCon self-assigned this Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants