Last active
May 25, 2024 13:27
-
-
Save habernal/ad1085ce5dc5e8cb3fbead354d8f4190 to your computer and use it in GitHub Desktop.
Install MS Segoe UI fonts on Ubuntu
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
#!/bin/bash | |
# We install the fonts locally, not into /usr/share/fonts/truetype to avoid unnecessary sudo rights | |
DEST_DIR="${HOME}/.fonts/segoeui" | |
mkdir -p $DEST_DIR | |
# Download 15 *.ttf files | |
VARIANTS='segoeui segoeuib segoeuii segoeuiz segoeuil seguili segoeuisl seguisli seguisb seguisbi seguibl seguibli seguiemj seguisym seguihis' | |
for VARIANT in $VARIANTS; do | |
# Do not overwrite existing files | |
wget --no-clobber https://github.com/mrbvrz/segoe-ui/raw/master/font/${VARIANT}.ttf?raw=true -O "${DEST_DIR}/${VARIANT}.ttf" | |
done | |
# Update font cache | |
fc-cache -fv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment