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
+5 -1
View File
@@ -59,12 +59,16 @@ 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} * {@link https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant}
*/ */
if (fontFamily === 'theme') {
style.fontVariant = (style.fontVariant || []).concat('no-contextual') style.fontVariant = (style.fontVariant || []).concat('no-contextual')
} }
}
/* /*
* IMPORTANT: This is unused. Expo statically extracts these fonts. * IMPORTANT: This is unused. Expo statically extracts these fonts.