mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-10 21:48:41 +00:00
Fix wide characters (#1549)
* Fix wide characters * Add phony screenshots * Try again with screenshotter * Screenshotter general edit * Getting closer * Fix screenshotter test * Update screenshots
This commit is contained in:
@@ -159,6 +159,16 @@
|
||||
font-family: KaTeX_SansSerif;
|
||||
}
|
||||
|
||||
.mathboldsf, .textboldsf {
|
||||
font-family: KaTeX_SansSerif;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.mathitsf, .textitsf {
|
||||
font-family: KaTeX_SansSerif;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.mainit {
|
||||
font-family: KaTeX_Main;
|
||||
font-style: italic;
|
||||
|
@@ -834,7 +834,7 @@ defineSymbol(text, main, textord, "k", wideChar);
|
||||
|
||||
// Next, some wide character numerals
|
||||
for (let i = 0; i < 10; i++) {
|
||||
const ch = letters.charAt(i);
|
||||
const ch = i.toString();
|
||||
|
||||
wideChar = String.fromCharCode(0xD835, 0xDFCE + i); // 0-9 bold
|
||||
defineSymbol(math, main, mathord, ch, wideChar);
|
||||
|
Reference in New Issue
Block a user