Skip to content

Commit

Permalink
[Fix] Flags not displayed when user don't have a font with flags emoji (
Browse files Browse the repository at this point in the history
  • Loading branch information
dawidgarus authored Mar 21, 2022
1 parent 237decf commit b1c08aa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/App.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
@import '~@fontsource/rubik/index.css';
@import '~@fontsource/cabin/index.css';
/*
Subset of font https://github.com/googlefonts/noto-emoji
which includes only flags emoji generated using command:
$ fonttools subset NotoColorEmoji.ttf --ignore-missing-glyphs --text-file=data.txt
where data.txt is a text file containing all the glyphs you want to include
*/
@font-face {
font-family: 'Noto Color Emoji';
src: url('./assets/NotoColorEmoji.subset.ttf');
}

* {
box-sizing: border-box;
}
Expand Down Expand Up @@ -221,7 +232,8 @@ html,
height: 40px;
background: var(--input-background);
border-radius: 10px;
font: var(--font-secondary-bold);
font-family: Cabin, sans-serif, 'Noto Color Emoji';
font-weight: normal;
font-size: 16px;
line-height: 19px;
color: var(--text-secondary);
Expand Down
Binary file added src/assets/NotoColorEmoji.subset.ttf
Binary file not shown.

0 comments on commit b1c08aa

Please sign in to comment.