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:
Ron Kok
2018-08-04 20:26:20 -07:00
committed by ylemkimon
parent f28e3c8001
commit aef9256419
5 changed files with 16 additions and 4 deletions

View File

@@ -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;

View File

@@ -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);