Merge pull request #1185 from mrcanelas/fix/windows-emoji-rendering
Some checks failed
Build / build (push) Has been cancelled

feat(ui): add Twemoji font fallback for country flags on Windows
This commit is contained in:
Timothy Z. 2026-04-05 13:20:27 +03:00 committed by GitHub
commit 4e735afacc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 2 deletions

Binary file not shown.

View file

@ -8,6 +8,12 @@
src: url('/assets/fonts/PlusJakartaSans.ttf') format('truetype');
}
@font-face {
font-family: 'TwemojiFlags';
src: url('/assets/fonts/TwemojiFlags.woff2') format('woff2');
unicode-range: U+1F1E6-1F1FF;
}
:global {
@import (once, less) '~stremio/common/animations.less';
@import (once, less) '~stremio-router/styles.css';
@ -151,7 +157,7 @@ svg {
html {
width: @html-width;
height: @html-height;
font-family: 'PlusJakartaSans', 'Arial', 'Helvetica', 'sans-serif';
font-family: 'PlusJakartaSans', 'Arial', 'Helvetica', 'TwemojiFlags', 'sans-serif';
overflow: auto;
overscroll-behavior: none;
user-select: none;

View file

@ -150,7 +150,7 @@ module.exports = (env, argv) => ({
]
},
{
test: /\.ttf$/,
test: /\.(ttf|woff2)$/,
exclude: /node_modules/,
type: 'asset/resource',
generator: {