fix inter font for variable weight

This commit is contained in:
sawka 2024-07-05 14:57:11 -07:00
parent 85d8bd35c7
commit a382d5d41e

View File

@ -146,7 +146,7 @@ function loadInterFont() {
isInterFontLoaded = true; isInterFontLoaded = true;
const interFont = new FontFace("Inter", "url('fonts/inter-variable.woff2')", { const interFont = new FontFace("Inter", "url('fonts/inter-variable.woff2')", {
style: "normal", style: "normal",
weight: "400", weight: "100 900",
}); });
addToFontFaceSet(document.fonts, interFont); addToFontFaceSet(document.fonts, interFont);
interFont.load(); interFont.load();