Commit 1334ab6
committed
Restore math-italic ASCII fold for MathJax combining accents
_mathItalicCpToChar was simplified during rebase to a one-line
String.fromCodePoint(cp), on the theory that pt6's cmap aliases would
re-route U+1D400-block math-italic letters to the plain-letter glyphs
where the GPOS mark anchors live. In practice the aliased path did
not trigger the mark feature for combining diacritics, so \hat{x},
\bar{H} etc. rendered with accents in the wrong place.
Restore the explicit U+1D434/U+1D44E/U+1D456 + U+210E + ASCII fold
from a3225f7 ("Fix the diacritics in the mathjax rendering") so the
injected text node carries plain ASCII letters that shape through the
font's mark anchors directly.
Also tighten the wide-mover overline position: anchor the hand-drawn
bar to baseRect.top with a small gap rather than overRect.top, which
includes the extra vertical padding MathJax allocates above the
stretched en-dash strip and pushed the bar visibly high above
\overline{a+b+c}.1 parent 4b3b588 commit 1334ab6
9 files changed
Lines changed: 19 additions & 11 deletions
File tree
- xkcd-script
- samples
- mathjax3
Binary file not shown.
Loading
Loading
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1915 | 1915 | | |
1916 | 1916 | | |
1917 | 1917 | | |
1918 | | - | |
1919 | | - | |
1920 | | - | |
1921 | | - | |
1922 | | - | |
1923 | | - | |
1924 | | - | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
1925 | 1925 | | |
1926 | 1926 | | |
1927 | | - | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
1928 | 1934 | | |
1929 | 1935 | | |
1930 | 1936 | | |
| |||
2029 | 2035 | | |
2030 | 2036 | | |
2031 | 2037 | | |
2032 | | - | |
2033 | | - | |
2034 | | - | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
2035 | 2043 | | |
2036 | 2044 | | |
2037 | 2045 | | |
| |||
0 commit comments