diff options
author | Minseo Lee <itoupluk427@gmail.com> | 2024-10-11 09:50:43 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-10 19:50:43 -0500 |
commit | 2a3f9b38e627d925133c8a72726aeb472a6792bd (patch) | |
tree | c104f975067b2630051318c112db981e9ed1a77f /src | |
parent | 2fc1f9ca654990c16d901da0fdb4bf8ecc36b454 (diff) | |
download | voidsky-2a3f9b38e627d925133c8a72726aeb472a6792bd.tar.zst |
Update fonts.ts (#5694)
Diffstat (limited to 'src')
-rw-r--r-- | src/alf/fonts.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/alf/fonts.ts b/src/alf/fonts.ts index 331da868a..1e4e99d3f 100644 --- a/src/alf/fonts.ts +++ b/src/alf/fonts.ts @@ -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') + } } /* |