add fonts

This commit is contained in:
2025-07-09 20:35:40 +02:00
parent 224c5e7dc5
commit 86c5298659
25 changed files with 1649 additions and 8 deletions

View File

@@ -1,12 +1,6 @@
#!/bin/sh
echo fonts
echo
nftag=$(curl https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest -s | jq .name -r)
# wget https://github.com/ryanoasis/nerd-fonts/releases/download/$nftag/NerdFontsSymbolsOnly.tar.xz
echo "Symbols Nerd Font, version online: $nftag"
BASEDIR="$(dirname $0)"
font_version () {
fc-query -f '%{fontversion}\n' "$1" | perl -E 'printf "%.3f\n", <>/65536.0'
@@ -21,6 +15,17 @@ font_version_file_pipe () {
done
}
echo fonts
DIR="$BASEDIR"/fonts
echo
nftag=$(curl https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest -s | jq .name -r)
echo "Symbols Nerd Font, version online: $nftag"
echo "Symbols Nerd Font, version local:"
find "$DIR/nerdfonts" -maxdepth 1 -iname "FiraCode*.ttf" | head -n1 | font_version_file_pipe
find "$DIR/nerdfonts" -maxdepth 1 -iname "Symbols*.ttf" | head -n1 | font_version_file_pipe
echo
echo "Kepler Font, version local:"
find /home/daniel/repos/emacs-conf/.emacs.d/scripts/fonts -iname "*.otf" | font_version_file_pipe
find "$DIR" -maxdepth 1 -iname "*.otf" | head -n1 | font_version_file_pipe