-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install Color Emoji font system-wide to close #2382
- Loading branch information
Showing
2 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#!/bin/bash | ||
mkdir -p $HOME/.fonts | ||
cd $HOME/.fonts || error "Failed to enter fonts directory!" | ||
wget https://github.com/googlefonts/noto-emoji/raw/main/fonts/NotoColorEmoji.ttf || error "Failed to download NotoColorEmoji.ttf!" | ||
wget -O /tmp/NotoColorEmoji.ttf https://github.com/googlefonts/noto-emoji/raw/main/fonts/NotoColorEmoji.ttf || error "Failed to download NotoColorEmoji.ttf!" | ||
|
||
sudo mkdir -p /usr/local/share/fonts || error "Failed to create /usr/local/share/fonts folder!" | ||
sudo mv /tmp/NotoColorEmoji.ttf /usr/local/share/fonts | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
theofficialgman
Collaborator
|
||
|
||
fc-cache -f || error "Failed to run fc-cache!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
#!/bin/bash | ||
rm -f "$HOME/.fonts/NotoColorEmoji.ttf" || sudo rm -f "$HOME/.fonts/NotoColorEmoji.ttf" || error "Failed to remove font file!" | ||
|
||
sudo rm -f /usr/local/share/fonts/NotoColorEmoji.ttf || error "Failed to remove font file!" | ||
fc-cache -f || error "Failed to run fc-cache!" |
its bad practice to install fonts directly into the
/usr/local/share/fonts
folder. refer to the system fonts folder where each font is first put in a folder that corresponds to the fonts type (eg:truetype
) and then the fontname (eg:droid
)so you should put this font in
/usr/local/share/fonts/truetype/noto
I actually have this font already on ubuntu lunar from the
fonts-noto-color-emoji
apt packagedon't place the font in /usr/share though, thats only for system apt packages to interact with