1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-08-20 10:38:12 +02:00

moving Iosevka font to its own repo. add install script to download the fonts.

This commit is contained in:
Henrik Hautakoski 2026-07-15 23:20:54 +02:00
parent 2af28c3050
commit 945e4e136e
10 changed files with 18 additions and 148 deletions

18
fonts/Ioseveka-custom.sh Executable file
View file

@ -0,0 +1,18 @@
#!/bin/bash
BASE_URL=https://raw.githubusercontent.com/pnx/Iosevka-custom/main/dist
INSTALL_DIR=~/.local/share/fonts
FONTS=(
IosevkaCustom-Regular.ttf
IosevkaCustom-SemiBold.ttf
IosevkaCustomNerdFont-Regular.ttf
IosevkaCustomNerdFont-SemiBold.ttf
)
for font in ${FONTS[@]}; do
echo "Installing ${font} to '${INSTALL_DIR}/${font}'"
curl -L -o "${INSTALL_DIR}/${font}" "${BASE_URL}/${font}"
done

View file

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

View file

@ -1,26 +0,0 @@
IOSEVKA_GIT=https://github.com/be5invis/Iosevka.git
FONT_NAME=IosevkaCustom
BUILD_DIR=.build
INSTALL_DIR ?= ~/.local/share/fonts
.phony = install
build: $(BUILD_DIR) \
$(BUILD_DIR)/node_modules \
$(BUILD_DIR)/private-build-plans.toml
cd $(BUILD_DIR); npm run build -- ttf::$(FONT_NAME)
install -m 644 $(BUILD_DIR)/dist/$(FONT_NAME)/TTF/*.ttf dist
install:
mkdir -p $(INSTALL_DIR)
install -m 644 dist/*.ttf $(INSTALL_DIR)
$(BUILD_DIR) :
git clone --depth 1 $(IOSEVKA_GIT) $(BUILD_DIR)
$(BUILD_DIR)/node_modules :
cd $(BUILD_DIR); npm install
$(BUILD_DIR)/private-build-plans.toml : config.toml
cp $< $@

View file

@ -1,94 +0,0 @@
[buildPlans.IosevkaCustom]
family = "IosevkaCustom"
spacing = "term"
serifs = "sans"
noCvSs = true
exportGlyphNames = false
noLigation = true
[buildPlans.IosevkaCustom.variants]
inherits = "ss12"
[buildPlans.IosevkaCustom.variants.design]
one = "base"
two = "straight-neck-serifless"
five = "upright-arched-serifless"
six = "closed-contour"
eight = "crossing"
nine = "straight-bar"
zero = "slashed"
capital-d = "standard-serifless"
capital-g = "toothless-corner-serifless-hooked"
capital-m = "flat-bottom-serifless"
capital-q = "crossing"
capital-r = "straight-serifless"
capital-w = "straight-flat-top-serifless"
a = "single-storey-earless-corner-serifless"
f = "flat-hook-serifless-crossbar-at-x-height"
g = "single-storey-flat-hook-earless-corner"
i = "serifed"
j = "flat-hook-serifless"
l = "serifed"
m = "earless-corner-double-arch-serifless"
t = "flat-hook"
w = "straight-flat-top-serifless"
y = "straight-serifless"
lower-eth = "straight-bar"
tittle = "square"
diacritic-dot = "square"
punctuation-dot = "square"
braille-dot = "square"
asterisk = "turn-hex-low"
underscore = "above-baseline"
brace = "curly"
number-sign = "upright"
dollar = "interrupted"
question = "corner-flat-hooked"
pilcrow = "high"
lig-ltgteq = "slanted"
lig-equal-chain = "without-notch"
lig-hyphen-chain = "without-notch"
[buildPlans.IosevkaCustom.weights.Regular]
shape = 400
menu = 400
css = 400
[buildPlans.IosevkaCustom.weights.SemiBold]
shape = 600
menu = 600
css = 600
[buildPlans.IosevkaCustom.widths.Normal]
shape = 500
menu = 5
css = "normal"
[buildPlans.IosevkaCustom.slopes.Upright]
angle = 0
shape = "upright"
menu = "upright"
css = "normal"
[buildPlans.IosevkaCustom.ligations]
disables = [
"slash-asterisk",
"trig"
]
# enables = [
# "arrow-l",
# "arrow-r",
# "eqeq",
# "eqeqeq",
# "exeq",
# "exeqeq",
# "exeqeqeq",
# "lteq",
# "gteq",
# "ltgt-ne",
# "llgg",
# "llggeq",
# # "kern-dotty",
# # "kern-bars",
# "html-comment"
# ]

View file

@ -1,3 +0,0 @@
#!/bin/bash
sudo dnf install ttfautohint fontforge python3-fontforge

Binary file not shown.

Binary file not shown.

View file

@ -1,23 +0,0 @@
#!/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