MCPcopy Create free account
hub / github.com/microsoft/SandDance / _getFontBaseUrl

Function _getFontBaseUrl

docs/app/js/sanddance-app.js:27702–27707  ·  view source on GitHub ↗

* Reads the fontBaseUrl from window.FabricConfig.fontBaseUrl or falls back to a default.

()

Source from the content-addressed store, hash-verified

27700/**
27701 * Reads the fontBaseUrl from window.FabricConfig.fontBaseUrl or falls back to a default.
27702 */ function _getFontBaseUrl() {
27703 var _a, _b, _c;
27704 // eslint-disable-next-line @typescript-eslint/no-explicit-any
27705 var fabricConfig = (_a = (0, _utilities.getWindow)()) === null || _a === void 0 ? void 0 : _a.FabricConfig;
27706 return _c = (_b = fabricConfig) === null || _b === void 0 ? void 0 : _b.fontBaseUrl, _c !== null && _c !== void 0 ? _c : DefaultBaseUrl;
27707}
27708/**
27709 * Register the font faces.
27710 */ registerDefaultFontFaces(_getFontBaseUrl());

Callers 1

sanddance-app.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected