1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

fonts/Iosevka: add nerdfont patcher script and the nerd fonts.

This commit is contained in:
Henrik Hautakoski 2025-01-26 18:41:48 +01:00
parent c4155370b4
commit f3b3a35b9d
4 changed files with 24 additions and 0 deletions

View file

@ -1 +1,2 @@
.build .build
.patcher

Binary file not shown.

Binary file not shown.

23
fonts/Iosevka/patcher.sh Executable file
View file

@ -0,0 +1,23 @@
#!/bin/bash
BASE_PATH=$(dirname $(readlink -f $BASH_SOURCE))
TMP_DIR=${BASE_PATH}/.patcher
SCRIPT_FILE="$TMP_DIR/font-patcher"
URL=https://github.com/ryanoasis/nerd-fonts/releases/latest/download/FontPatcher.zip
ZIP_FILE=patcher.zip
if [ ! -f $SCRIPT_FILE ];then
mkdir $TMP_DIR
if [ ! -f "$TMP_DIR/$ZIP_FILE" ]; then
curl -L -o "$TMP_DIR/$ZIP_FILE" ${URL}
fi
unzip "$TMP_DIR/$ZIP_FILE" -d $TMP_DIR
fi
for font in ${BASE_PATH}/dist/IosevkaCustom-*.ttf; do
$SCRIPT_FILE -out ${BASE_PATH}/dist -c $font
done