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:
parent
c4155370b4
commit
f3b3a35b9d
4 changed files with 24 additions and 0 deletions
1
fonts/Iosevka/.gitignore
vendored
1
fonts/Iosevka/.gitignore
vendored
|
|
@ -1 +1,2 @@
|
|||
.build
|
||||
.patcher
|
||||
|
|
|
|||
BIN
fonts/Iosevka/dist/IosevkaCustomNerdFont-Regular.ttf
vendored
Normal file
BIN
fonts/Iosevka/dist/IosevkaCustomNerdFont-Regular.ttf
vendored
Normal file
Binary file not shown.
BIN
fonts/Iosevka/dist/IosevkaCustomNerdFont-SemiBold.ttf
vendored
Normal file
BIN
fonts/Iosevka/dist/IosevkaCustomNerdFont-SemiBold.ttf
vendored
Normal file
Binary file not shown.
23
fonts/Iosevka/patcher.sh
Executable file
23
fonts/Iosevka/patcher.sh
Executable 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue