diff --git a/fonts/Iosevka/.gitignore b/fonts/Iosevka/.gitignore new file mode 100644 index 0000000..24e5b0a --- /dev/null +++ b/fonts/Iosevka/.gitignore @@ -0,0 +1 @@ +.build diff --git a/fonts/Iosevka/Makefile b/fonts/Iosevka/Makefile new file mode 100644 index 0000000..c609783 --- /dev/null +++ b/fonts/Iosevka/Makefile @@ -0,0 +1,25 @@ +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: + 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 $< $@ + diff --git a/fonts/Iosevka/config.toml b/fonts/Iosevka/config.toml new file mode 100644 index 0000000..4a6552e --- /dev/null +++ b/fonts/Iosevka/config.toml @@ -0,0 +1,94 @@ +[buildPlans.IosevkaCustom] +family = "IosevkaCustom" +spacing = "normal" +serifs = "sans" +noCvSs = true +exportGlyphNames = false + +[buildPlans.IosevkaCustom.variants] +inherits = "ss12" + +[buildPlans.IosevkaCustom.variants.design] +one = "base" +two = "straight-neck-serifless" +four = "semi-open-serifless" +five = "upright-arched-serifless" +six = "closed-contour" +seven = "bend-serifless" +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 = "high" +brace = "curly" +number-sign = "upright" +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" +# ] diff --git a/fonts/Iosevka/deps.sh b/fonts/Iosevka/deps.sh new file mode 100755 index 0000000..6c074bd --- /dev/null +++ b/fonts/Iosevka/deps.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +sudo dnf install ttfautohint fontforge python3-fontforge diff --git a/fonts/Iosevka/dist/IosevkaCustom-Regular.ttf b/fonts/Iosevka/dist/IosevkaCustom-Regular.ttf new file mode 100644 index 0000000..8cccc8d Binary files /dev/null and b/fonts/Iosevka/dist/IosevkaCustom-Regular.ttf differ diff --git a/fonts/Iosevka/dist/IosevkaCustom-SemiBold.ttf b/fonts/Iosevka/dist/IosevkaCustom-SemiBold.ttf new file mode 100644 index 0000000..582d6a4 Binary files /dev/null and b/fonts/Iosevka/dist/IosevkaCustom-SemiBold.ttf differ