MathJax
MathJax copied to clipboard
v3 different spacing of italic kanji when switching CHTML to SVG
Steps to Reproduce:
- use chtml renderer,
\textit{數學分析} - switch to svg
- observe the spacing is different
Screen recording
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:
- Please supply a link to a (live) minimal example page: https://jsbin.com/tigodegutu/edit?html,output
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.