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

v3 different spacing of italic kanji when switching CHTML to SVG #3179

Open
hbghlyj opened this issue Feb 10, 2024 · 1 comment
Open

v3 different spacing of italic kanji when switching CHTML to SVG #3179

hbghlyj opened this issue Feb 10, 2024 · 1 comment
Labels
Accepted Issue has been reproduced by MathJax team v3
Milestone

Comments

@hbghlyj
Copy link

hbghlyj commented Feb 10, 2024

Steps to Reproduce:

  1. use chtml renderer, \textit{數學分析}
  2. switch to svg
  3. observe the spacing is different

Screen recording

output

Technical details:

  • MathJax Version: 3.2.2
  • Browser: Firefox

I am the default MathJax configuration, and loading MathJax via

<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
\(\textit{數學分析}\)

Supporting information:

@hbghlyj hbghlyj changed the title v3 different spacing of Unicode characters when switching CHTML to SVG v3 different spacing of italic kanji when switching CHTML to SVG Feb 10, 2024
@dpvc dpvc added Accepted Issue has been reproduced by MathJax team v3 labels Feb 12, 2024
@dpvc
Copy link
Member

dpvc commented Feb 12, 2024

This is due to the fact that CHTML output groups characters that are not in the MathJax fonts into a single DOM element, while SVG output does not. This is fixed in v4 (mathjax/MathJax-src#903). For now, if you set mtextInheritFont: true in the chtml and svg blocks of your MathJax configuration, that will cause the spacing to be the same.

@dpvc dpvc added this to the v4.0 milestone Feb 12, 2024
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 v3
Projects
None yet
Development

No branches or pull requests

2 participants