[Web] Fix Wordle score rendering - prevent Inter from overriding emoji presentation (#10104)

(cherry picked from commit 3e7e859c9c)
This commit is contained in:
Samuel Newman
2026-03-23 09:19:33 -07:00
committed by Eric Bailey
parent a8b3bfe339
commit 35dd2407ed
+10 -2
View File
@@ -77,10 +77,18 @@ export function applyFonts(style: TextStyle, fontFamily: 'system' | 'theme') {
}
/**
* Disable contextual alternates in Inter
* Disable contextual alternates and emoji overrides in Inter
* {@link https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant}
*/
style.fontVariant = (style.fontVariant || []).concat('no-contextual')
if (IS_WEB) {
// @ts-expect-error - web supports 'unicode' as a valid value for fontVariant
style.fontVariant = (style.fontVariant || []).concat(
'no-contextual',
'unicode',
)
} else {
style.fontVariant = (style.fontVariant || []).concat('no-contextual')
}
} else {
// fallback families only supported on web
if (IS_WEB) {