this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Samuel Newman and committed by
GitHub
3e7e859c 854ae60e

+10 -2
+10 -2
src/alf/fonts.ts
··· 77 77 } 78 78 79 79 /** 80 - * Disable contextual alternates in Inter 80 + * Disable contextual alternates and emoji overrides in Inter 81 81 * {@link https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant} 82 82 */ 83 - style.fontVariant = (style.fontVariant || []).concat('no-contextual') 83 + if (IS_WEB) { 84 + // @ts-expect-error - web supports 'unicode' as a valid value for fontVariant 85 + style.fontVariant = (style.fontVariant || []).concat( 86 + 'no-contextual', 87 + 'unicode', 88 + ) 89 + } else { 90 + style.fontVariant = (style.fontVariant || []).concat('no-contextual') 91 + } 84 92 } else { 85 93 // fallback families only supported on web 86 94 if (IS_WEB) {