Skip to content

Commit

Permalink
Fix flag emoji font
Browse files Browse the repository at this point in the history
Windows is silly and doesn't include flag emojis: #72

This should fix that by using Flag emojis from the Noto Color Emoji
font.

https://stackoverflow.com/questions/62729729/how-do-i-view-country-flags-on-windows-10-through-html/70021892#70021892

While I'm at it, clean up a couple CSS font rules.
  • Loading branch information
kas-catholic committed Jun 17, 2023
1 parent 78024f6 commit ea1e2c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}

.btn {
font-family: "Open Sans", sans-serif;
font-family: "NotoColorEmojiLimited", "Open Sans", sans-serif;
}

.navbar-brand {
Expand Down Expand Up @@ -38,7 +38,6 @@
* This is required to make each column scroll independently. */
.navbar {
height: 4rem;
font-family: "Open Sans", sans-serif;
}
.column-container {
height: calc(100% - 4rem);
Expand Down
7 changes: 5 additions & 2 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ $mobile-breakpoint: 376px;
// Import Swiper
@import "swiper/css";

* {
font-family: "EB Garamond", serif;
@font-face {
font-family: NotoColorEmojiLimited;
unicode-range: U+1F1E6-1F1FF;
src: url(https://raw.githack.com/googlefonts/noto-emoji/main/fonts/NotoColorEmoji.ttf);
}

body {
font-family: "NotoColorEmojiLimited", "EB Garamond", serif;
margin: 0;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
Expand Down

0 comments on commit ea1e2c0

Please sign in to comment.