Fix missing metrics for space (0x20) and no-break space (0xa0) (#2298)

* Fix missing metrics for space (0x20) and no-break space (0xa0)

* Update a screenshot

* Update font submodule

* Add a regression test
This commit is contained in:
ylemkimon
2020-07-13 03:38:34 +09:00
committed by GitHub
parent 2c5a3b8fdc
commit 1a8f682155
3 changed files with 4 additions and 4 deletions

View File

@@ -1737,9 +1737,9 @@ describe("An HTML font tree-builder", function() {
expect(markup).toContain("<span class=\"mord\">T</span>"); expect(markup).toContain("<span class=\"mord\">T</span>");
}); });
it("should render \\textbf{R} with the correct font", function() { it("should render \\textbf{R } with the correct font", function() {
const markup = katex.renderToString(r`\textbf{R}`); const markup = katex.renderToString(r`\textbf{R }`);
expect(markup).toContain("<span class=\"mord textbf\">R</span>"); expect(markup).toContain("<span class=\"mord textbf\">R\u00a0</span>");
}); });
it("should render \\textmd{R} with the correct font", function() { it("should render \\textmd{R} with the correct font", function() {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB