Created
September 2, 2025 23:45
-
-
Save stuaxo/7f976acac76406f9cd7c69b7c7d462c6 to your computer and use it in GitHub Desktop.
Install the Microsoft Aptos fonts.
This file contains hidden or 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 | |
# Install the Microsoft Aptos Fonts | |
# Requires: lynx, unzip, unrtf | |
set -e | |
URL='https://download.microsoft.com/download/8/6/0/860a94fa-7feb-44ef-ac79-c072d9113d69/Microsoft%20Aptos%20Fonts.zip' | |
TEMP_DIR=$(mktemp -d) | |
cd "$TEMP_DIR" | |
wget -O aptos.zip "$URL" | |
unzip -q aptos.zip | |
unrtf "Microsoft Aptos Fonts EULA.rtf" | lynx -stdin -dump | less -R -E | |
read -n 1 -r -p "Agree to EULA? (y/n): " r && echo && [[ "$r" =~ ^[Yy] ]] || exit 1 | |
mkdir -p ~/.local/share/fonts/ms-aptos | |
cp -- *.ttf ~/.local/share/fonts/ms-aptos | |
fc-cache -f | |
rm -rf "$TEMP_DIR" | |
echo "Aptos fonts installed!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment