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

CHTML doesn't scale bounding box for content in unknown fonts in script sizes. #2818

Closed
dpvc opened this issue Jan 11, 2022 · 0 comments
Closed
Labels
Accepted Issue has been reproduced by MathJax team Fixed v3 v3.2
Milestone

Comments

@dpvc
Copy link
Member

dpvc commented Jan 11, 2022

When CHTML needs to measure content that is in a non-MathJax font (e.g., unicode characters not in its fonts, or when mtextInheritFont is used, or when an explicit font is specified in a style attribute), it fails to account for the scaling for script and script-script sizes. See this StackOverflow post for an example.

The unknownText() function needs to be passed the relative scaling factor from the element's BBox structure and compensate for that.

@dpvc dpvc added Accepted Issue has been reproduced by MathJax team Ready for Development v3 labels Jan 11, 2022
@dpvc dpvc self-assigned this Jan 11, 2022
dpvc added a commit to mathjax/MathJax-src that referenced this issue Jan 12, 2022
@dpvc dpvc added this to the 3.2.1 milestone Jan 31, 2022
dpvc added a commit to mathjax/MathJax-src that referenced this issue Feb 22, 2022
Take relative scaling into account for CHTML output of non-MathJax fonts (mathjax/MathJax#2818)
@dpvc dpvc added Merged Merged into develop branch and removed Ready for Review labels Feb 22, 2022
@dpvc dpvc removed their assignment Jun 1, 2022
@dpvc dpvc added Fixed v3.2 and removed Merged Merged into develop branch labels Jun 1, 2022
@dpvc dpvc closed this as completed Jun 1, 2022
dpvc added a commit to mathjax/MathJax-src that referenced this issue Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Issue has been reproduced by MathJax team Fixed v3 v3.2
Projects
None yet
Development

No branches or pull requests

1 participant