MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / loadInterFont

Function loadInterFont

frontend/util/fontutil.ts:70–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68}
69
70function loadInterFont() {
71 if (isInterFontLoaded) {
72 return;
73 }
74 isInterFontLoaded = true;
75 const interFont = new FontFace("Inter", "url('fonts/inter-variable.woff2')", {
76 style: "normal",
77 weight: "100 900",
78 });
79 addToFontFaceSet(document.fonts, interFont);
80 interFont.load();
81}
82
83function loadFonts() {
84 loadInterFont();

Callers 1

loadFontsFunction · 0.85

Calls 1

addToFontFaceSetFunction · 0.85

Tested by

no test coverage detected