MCPcopy Create free account
hub / github.com/TruthHun/BookStack / boldsymbol

Function boldsymbol

static/katex/katex.js:5432–5446  ·  view source on GitHub ↗
(value, mode, options, classes)

Source from the content-addressed store, hash-verified

5430
5431
5432var boldsymbol = function boldsymbol(value, mode, options, classes) {
5433 if (buildCommon_lookupSymbol(value, "Math-BoldItalic", mode).metrics) {
5434 return {
5435 fontName: "Math-BoldItalic",
5436 fontClass: "boldsymbol"
5437 };
5438 } else {
5439 // Some glyphs do not exist in Math-BoldItalic so we need to use
5440 // Main-Bold instead.
5441 return {
5442 fontName: "Main-Bold",
5443 fontClass: "mathbf"
5444 };
5445 }
5446};
5447/**
5448 * Makes either a mathord or textord in the correct font and color.
5449 */

Callers 1

buildCommon_makeOrdFunction · 0.70

Calls 1

buildCommon_lookupSymbolFunction · 0.85

Tested by

no test coverage detected