feat(appliedFontsStore): explicidly state usage of woff2

This commit is contained in:
Ilia Mashkov
2026-02-10 18:05:13 +03:00
parent 1eef9eff07
commit 7aa9fbd394
2 changed files with 53 additions and 33 deletions

View File

@@ -112,7 +112,7 @@ export class AppliedFontsManager {
const internalName = `f_${config.id}`;
const weightRange = config.isVariable ? '100 900' : `${config.weight}`;
const font = new FontFace(config.name, `url(${config.url})`, {
const font = new FontFace(config.name, `url(${config.url}) format('woff2')`, {
weight: weightRange,
style: 'normal',
display: 'swap',