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

Function optionsWithFont

static/katex/katex.js:12862–12874  ·  view source on GitHub ↗
(group, options)

Source from the content-addressed store, hash-verified

12860};
12861
12862var optionsWithFont = function optionsWithFont(group, options) {
12863 var font = group.font; // Checks if the argument is a font family or a font style.
12864
12865 if (!font) {
12866 return options;
12867 } else if (textFontFamilies[font]) {
12868 return options.withTextFontFamily(textFontFamilies[font]);
12869 } else if (textFontWeights[font]) {
12870 return options.withTextFontWeight(textFontWeights[font]);
12871 } else {
12872 return options.withTextFontShape(textFontShapes[font]);
12873 }
12874};
12875
12876defineFunction({
12877 type: "text",

Callers 1

katex.jsFile · 0.70

Calls 3

withTextFontFamilyMethod · 0.80
withTextFontWeightMethod · 0.80
withTextFontShapeMethod · 0.80

Tested by

no test coverage detected