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

Add support for mglyph use of fontfamily/index. (mathjax/MathJax#2298) #778

Merged
merged 2 commits into from
Apr 6, 2022

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Feb 11, 2022

This PR adds support for using the fontfamily and index attributes on mglyph, to bring it more in line with v2. This does not do the check that the requested character is actually in the specified font, however, which was done in the HTML-CSS output jax of v2, so the alt attribute will not be used in this case.

The common glyph output wrapper now creates a TextNode for the character indicated by index, and uses that to produce the SVG or CHTML output (and to compute its bounding box).

It now reports an error if the mglyph doesn't have a src attribute and is also missing either the fontfamily or index attributes.

Resolves issue mathjax/MathJax#2298.

@dpvc dpvc requested a review from zorkow February 11, 2022 15:40
Copy link
Member

@zorkow zorkow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor thing. O/w lgtm.

@dpvc dpvc added this to the 3.2.1 milestone Feb 22, 2022
@zorkow
Copy link
Member

zorkow commented Apr 6, 2022

Lgtm.

@dpvc dpvc merged commit a800e03 into develop Apr 6, 2022
@dpvc dpvc deleted the issue2298 branch April 6, 2022 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants