Skip to content

Commit 173f6f0

Browse files
committed
Only use non-combining vector arrow for accents (allows use in \text{} or other locations as actual combining character, so browers can adjust the height)
1 parent 3973b4d commit 173f6f0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

unpacked/jax/output/CommonHTML/fonts/TeX/fontdata.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,6 @@
232232
0x231C: 0x250C, 0x231D:0x2510, // wrong placement of \ulcorner, \urcorner
233233
0x231E: 0x2514, 0x231F:0x2518, // wrong placement of \llcorner, \lrcorner
234234

235-
0x20D7: "\uEEE2\uE160", // HACK: for non-combining \vec (#1709)
236-
237235
//
238236
// compound symbols not in these fonts
239237
//
@@ -264,7 +262,8 @@
264262
},
265263

266264
REMAPACCENT: {
267-
"\u2192":"\u20D7",
265+
"\u20D7":"\uE160", // HACK: for non-combining \vec (#1709)
266+
"\u2192":"\uE160",
268267
"\u2032":"'",
269268
"\u2035":"`"
270269
},
@@ -1598,8 +1597,7 @@
15981597

15991598
CHTML.FONTDATA.FONTS['MathJax_Vector'] = {
16001599
centerline: 357, ascent: 714, descent: 0,
1601-
0x2192: [714,-516,500.1,29,471], // vector arrow (w = 500.1 to avoid zero width)
1602-
0xEEE2: [0,0,-500,0,0,{space:1}] // backspace
1600+
0x2192: [714,-516,500,29,471] // vector arrow
16031601
};
16041602

16051603
CHTML.FONTDATA.FONTS[MAIN][0x2212][0] = CHTML.FONTDATA.FONTS[MAIN][0x002B][0]; // minus is sized as plus

0 commit comments

Comments
 (0)