[Web] Fix Wordle score rendering - prevent Inter from overriding emoji presentation (#10104)
(cherry picked from commit 3e7e859c9c)
This commit is contained in:
committed by
Eric Bailey
parent
a8b3bfe339
commit
35dd2407ed
+9
-1
@@ -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}
|
* {@link https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant}
|
||||||
*/
|
*/
|
||||||
|
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')
|
style.fontVariant = (style.fontVariant || []).concat('no-contextual')
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// fallback families only supported on web
|
// fallback families only supported on web
|
||||||
if (IS_WEB) {
|
if (IS_WEB) {
|
||||||
|
|||||||
Reference in New Issue
Block a user