Improve MathML fonts (#1965)

This commit is contained in:
Ron Kok
2019-05-19 16:24:34 -07:00
committed by Kevin Barabash
parent c8f2783ca8
commit 6b0f06df21
3 changed files with 35 additions and 48 deletions

View File

@@ -94,6 +94,19 @@ export const getVariant = function(
return "italic";
} else if (font === "boldsymbol") {
return "bold-italic";
} else if (font === "mathbf") {
return "bold";
} else if (font === "mathbb") {
return "double-struck";
} else if (font === "mathfrak") {
return "fraktur";
} else if (font === "mathscr" || font === "mathcal") {
// MathML makes no distinction between script and caligrahpic
return "script";
} else if (font === "mathsf") {
return "sans-serif";
} else if (font === "mathtt") {
return "monospace";
}
let text = group.text;