Skip to content

Instantly share code, notes, and snippets.

@habernal
Last active May 25, 2024 13:27
Show Gist options
  • Save habernal/ad1085ce5dc5e8cb3fbead354d8f4190 to your computer and use it in GitHub Desktop.
Save habernal/ad1085ce5dc5e8cb3fbead354d8f4190 to your computer and use it in GitHub Desktop.
Install MS Segoe UI fonts on Ubuntu
#!/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