From 35dd2407ed3a4cc8fb4e2c5806aa3048e57e5873 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 23 Mar 2026 09:19:33 -0700 Subject: [PATCH] [Web] Fix Wordle score rendering - prevent Inter from overriding emoji presentation (#10104) (cherry picked from commit 3e7e859c9cd33ceaafb5a1806764e536320361d5) --- src/alf/fonts.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/alf/fonts.ts b/src/alf/fonts.ts index e9988e48dc..2ddc475bf5 100644 --- a/src/alf/fonts.ts +++ b/src/alf/fonts.ts @@ -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) {