Update fonts.ts (#5694)

This commit is contained in:
Minseo Lee
2024-10-11 09:50:43 +09:00
committed by GitHub
parent 2fc1f9ca65
commit 2a3f9b38e6
+6 -2
View File
@@ -59,11 +59,15 @@ export function applyFonts(
}
}
style.fontVariant = style.fontVariant || []
/**
* Disable contextual ligatures
* Disable contextual alternates in Inter
* {@link https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant}
*/
style.fontVariant = (style.fontVariant || []).concat('no-contextual')
if (fontFamily === 'theme') {
style.fontVariant = (style.fontVariant || []).concat('no-contextual')
}
}
/*