MCPcopy Create free account
hub / github.com/UI5/webcomponents / insertMainFontFace

Function insertMainFontFace

packages/base/src/FontFace.ts:16–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14};
15
16const insertMainFontFace = () => {
17 const hasFontStyles = document.querySelector("head>style[data-ui5-font-face]");
18
19 if (!getDefaultFontLoading() || hasFontStyles) {
20 return;
21 }
22
23 createOrUpdateStyle(fontFaceCSS, "data-ui5-font-face");
24};
25
26export default insertFontFace;

Callers 1

insertFontFaceFunction · 0.85

Calls 2

createOrUpdateStyleFunction · 0.85
getDefaultFontLoadingFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…