forked from Xetera/xetera.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfix-fonts.sh
More file actions
37 lines (30 loc) · 768 Bytes
/
Copy pathfix-fonts.sh
File metadata and controls
37 lines (30 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env bash
#check if font is installed
fc-match "Noto Color Emoji"
#if not installed install with following line
apt-get install fonts-noto-color-emoji -y
curl -L https://noto-website-2.storage.googleapis.com/pkgs/NotoColorEmoji-unhinted.zip -o NotoColorEmoji.zip
unzip NotoColorEmoji.zip
mkdir "$HOME/.fonts"
mv NotoColorEmoji.ttf "$HOME/.fonts"
cat << EOF > "$HOME/.fonts.conf"
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>sans-serif</family>
<prefer>
<family>Noto Color Emoji</family>
<family>Noto Emoji</family>
</prefer>
</alias>
<alias>
<family>serif</family>
<prefer>
<family>Noto Color Emoji</family>
<family>Noto Emoji</family>
</prefer>
</alias>
</fontconfig>
EOF
fc-cache -fv