From fedc5e98bbf21246e0aa2bc817cea92cff298574 Mon Sep 17 00:00:00 2001 From: "Mukherjee, Saumyajyoti" Date: Sun, 28 Jul 2024 01:38:44 +0530 Subject: [PATCH] v11, latest IOSEVKA, minor style change, more weight variants --- IOSEVKA-Custom-NF/miosevka-build-plans.toml | 81 +++++++++------------ IOSEVKA-Custom-NF/nerdfont.bat | 42 +++++++---- IOSEVKA-Custom-NF/riosevka-build-plans.toml | 58 ++++++++++----- 3 files changed, 100 insertions(+), 81 deletions(-) diff --git a/IOSEVKA-Custom-NF/miosevka-build-plans.toml b/IOSEVKA-Custom-NF/miosevka-build-plans.toml index a481085..2f34d9a 100644 --- a/IOSEVKA-Custom-NF/miosevka-build-plans.toml +++ b/IOSEVKA-Custom-NF/miosevka-build-plans.toml @@ -3,102 +3,72 @@ family = "Miosevka" spacing = "normal" serifs = "sans" noCvSs = true -exportGlyphNames = false +exportGlyphNames = true [buildPlans.Miosevka.variants] inherits = "ss20" [buildPlans.Miosevka.variants.design] - capital-k = "curly-serifless" - capital-r = "curly-serifless" - a = "double-storey-serifless" - f = "serifless" - g = "single-storey-serifless" i = "semi-tailed" j = "serifless" - k = "curly-serifless" l = "serifed-semi-tailed" m = "short-leg-serifless" - p = "eared-serifless" r = "hookless-serifless" t = "flat-hook" - two = "curly-neck-serifless" - five = "upright-flat-serifless" - nine = "open-contour" - tilde = "low" + braille-dot = "round" asterisk = "turn-hex-low" - underscore = "high" - caret = "medium" - ascii-grave = "straight" paren = "flat-arc" brace = "curly-flat-boundary" - guillemet = "curly" number-sign = "upright-tall" at = "threefold" percent = "rings-continuous-slash" - bar = "natural-slope" pilcrow = "low" lig-ltgteq = "slanted" - lig-neq = "slightly-slanted" [buildPlans.Miosevka.variants.italic] - capital-b = "more-asymmetric-serifless" - capital-d = "standard-serifless" + one = "no-base-long-top-serif" + two = "straight-neck-serifless" + four = "open-serifless" + five = "oblique-flat-serifless" + six = "straight-bar" + seven = "curly-serifless-crossbar" + eight = "crossing" + nine = "straight-bar" + zero = "oval-tall-reverse-slashed" + capital-a = "curly-serifless" + capital-b = "more-asymmetric-interrupted-serifless" capital-e = "serifless" capital-g = "toothless-rounded-serifless-hooked" - capital-i = "serifed" capital-m = "slanted-sides-hanging-serifless" capital-n = "asymmetric-serifless" capital-q = "crossing-curly-tailed" capital-r = "curly-open-serifless" capital-z = "curly-serifless-with-crossbar" - a = "single-storey-earless-corner-tailed" b = "toothless-corner-serifless" - c = "serifless" d = "toothless-corner-serifless" - e = "rounded" - f = "tailed" g = "single-storey-serifed" - h = "straight-serifless" i = "tailed-serifed" j = "serifed" k = "diagonal-tailed-cursive-serifless" l = "tailed-serifed" m = "short-leg-top-left-serifed" n = "straight-top-left-serifed" - p = "eared-serifless" q = "diagonal-tailed-serifless" r = "serifless" - s = "serifless" t = "bent-hook" - u = "toothed-serifless" + u = "tailed-serifless" v = "cursive-serifless" w = "cursive-serifless" x = "semi-chancery-curly-serifless" - y = "cursive-serifless" - z = "curly-serifless-with-horizontal-crossbar" - zero = "oval-tall-reverse-slashed" - one = "no-base-long-top-serif" - two = "straight-neck-serifless" - three = "two-arcs" - four = "open-serifless" - five = "oblique-flat-serifless" - six = "straight-bar" - seven = "curly-serifless-crossbar" - eight = "crossing" - punctuation-dot = "round" - tilde = "low" + z = "cursive" + braille-dot = "round" asterisk = "penta-low" paren = "flat-arc" brace = "curly-flat-boundary" - guillemet = "curly" number-sign = "slanted-open-tall" ampersand = "lower-open" - at = "threefold" - dollar = "interrupted" - cent = "through" + at = "fourfold-tall" percent = "rings-segmented-slash" - bar = "force-upright" pilcrow = "low" lig-ltgteq = "slanted" lig-neq = "more-slanted" @@ -106,16 +76,31 @@ exportGlyphNames = false lig-double-arrow-bar = "without-notch" lig-single-arrow-bar = "without-notch" +[buildPlans.Miosevka.weights.Light] +shape = 300 +menu = 300 +css = 300 + [buildPlans.Miosevka.weights.Regular] shape = 400 menu = 400 css = 400 +[buildPlans.Miosevka.weights.SemiBold] +shape = 600 +menu = 600 +css = 600 + [buildPlans.Miosevka.weights.Bold] shape = 700 menu = 700 css = 700 +[buildPlans.Miosevka.weights.ExtraBold] +shape = 800 +menu = 800 +css = 800 + [buildPlans.Miosevka.widths.Normal] shape = 600 menu = 5 @@ -131,4 +116,4 @@ css = "normal" angle = 9.4 shape = "italic" menu = "italic" -css = "italic" +css = "italic" \ No newline at end of file diff --git a/IOSEVKA-Custom-NF/nerdfont.bat b/IOSEVKA-Custom-NF/nerdfont.bat index 83c9701..e362c04 100644 --- a/IOSEVKA-Custom-NF/nerdfont.bat +++ b/IOSEVKA-Custom-NF/nerdfont.bat @@ -14,10 +14,14 @@ setlocal SET IOSEVKA_PATH="%temp%\Iosevka" SET "PATH=C:\Program Files (x86)\FontForgeBuilds\bin;%~dp0\..\bin;%PATH%" SET FFPYTHON_EXE="C:\Program Files (x86)\FontForgeBuilds\bin\ffpython.exe" -SET FONTVERNUM=10 +SET FONTVERNUM=11 SET OUTPATH="D:\Font\Miosevka%FONTVERNUM%" SET NERDFONT_PATCHER_PATH="%~dp0\..\bin\nerdfont\font-patcher" SET FONTVER=Miosevka%FONTVERNUM% + +rmdir /S /Q %OUTPATH% +mkdir %OUTPATH% + echo ======================================================= if exist %IOSEVKA_PATH%\ ( @@ -41,25 +45,18 @@ echo Build Riosevka copy /Y %~dp0\riosevka-build-plans.toml %IOSEVKA_PATH%\private-build-plans.toml call npm run build -- ttf::Riosevka -mkdir %OUTPATH% -cd /d %OUTPATH% echo ======================================================= -echo patch fonts -%FFPYTHON_EXE% %NERDFONT_PATCHER_PATH% -c "%IOSEVKA_PATH%\dist\miosevka\ttf\miosevka-regular.ttf" -%FFPYTHON_EXE% %NERDFONT_PATCHER_PATH% -c "%IOSEVKA_PATH%\dist\miosevka\ttf\miosevka-italic.ttf" -%FFPYTHON_EXE% %NERDFONT_PATCHER_PATH% -c "%IOSEVKA_PATH%\dist\miosevka\ttf\miosevka-bold.ttf" -%FFPYTHON_EXE% %NERDFONT_PATCHER_PATH% -c "%IOSEVKA_PATH%\dist\miosevka\ttf\miosevka-boldItalic.ttf" - -%FFPYTHON_EXE% %NERDFONT_PATCHER_PATH% -c "%IOSEVKA_PATH%\dist\riosevka\ttf\riosevka-regular.ttf" -%FFPYTHON_EXE% %NERDFONT_PATCHER_PATH% -c "%IOSEVKA_PATH%\dist\riosevka\ttf\riosevka-italic.ttf" -%FFPYTHON_EXE% %NERDFONT_PATCHER_PATH% -c "%IOSEVKA_PATH%\dist\riosevka\ttf\riosevka-bold.ttf" -%FFPYTHON_EXE% %NERDFONT_PATCHER_PATH% -c "%IOSEVKA_PATH%\dist\riosevka\ttf\riosevka-boldItalic.ttf" +call :PATCH miosevka +call :PATCH riosevka + echo ======================================================= echo Copy Files copy /Y %~dp0\..\*license.* %OUTPATH% copy /Y "%IOSEVKA_PATH%\dist\miosevka\ttf\*.ttf" %OUTPATH% copy /Y "%IOSEVKA_PATH%\dist\riosevka\ttf\*.ttf" %OUTPATH% -cd .. + +cd /d %OUTPATH%\..\ + echo create %FONTVER%.zip tar.exe -a -c -f "%FONTVER%.zip" %OUTPATH% @@ -74,3 +71,20 @@ REM cd .. REM :END explorer . +exit /b 0 + +::================ ROUTINE PATCH ==================== +:PATCH + +echo ======================================================= + +set fontdir="%IOSEVKA_PATH%\dist\%1\ttf" +echo patch fonts in %fontdir% +cd /d %fontdir% +:: setlocal enabledelayedexpansion +for /r %%f in (%1-*.ttf) do ( + echo "Patching: %%f" + %FFPYTHON_EXE% %NERDFONT_PATCHER_PATH% -c %%f +) +exit /b 0 +::==================================================== \ No newline at end of file diff --git a/IOSEVKA-Custom-NF/riosevka-build-plans.toml b/IOSEVKA-Custom-NF/riosevka-build-plans.toml index 93b1098..578c511 100644 --- a/IOSEVKA-Custom-NF/riosevka-build-plans.toml +++ b/IOSEVKA-Custom-NF/riosevka-build-plans.toml @@ -3,12 +3,15 @@ family = "Riosevka" spacing = "normal" serifs = "sans" noCvSs = true -exportGlyphNames = false +exportGlyphNames = true [buildPlans.Riosevka.variants] inherits = "ss20" [buildPlans.Riosevka.variants.design] + one = "no-base" + five = "upright-arched-serifless" + nine = "open-contour" capital-g = "toothless-corner-serifless-hooked" capital-j = "serifed" a = "single-storey-earless-corner-tailed" @@ -17,36 +20,41 @@ exportGlyphNames = false e = "rounded" f = "serifless" g = "single-storey-flat-hook-earless-rounded" - i = "tailed-serifed" - j = "serifed" - l = "tailed-serifed" + i = "semi-tailed" + j = "serifless" + l = "semi-tailed" m = "earless-rounded-double-arch-short-leg-serifless" n = "earless-rounded-straight-serifless" p = "earless-rounded-serifless" q = "earless-corner-straight-serifless" r = "serifless" s = "serifless" + t = "flat-hook-short-neck2" u = "toothless-rounded-serifless" - one = "no-base" - five = "upright-flat-serifless" - nine = "open-contour" - asterisk = "penta-low" + tittle = "round" + asterisk = "turn-hex-low" + paren = "flat-arc" brace = "curly-flat-boundary" - lig-ltgteq = "flat" + lig-ltgteq = "slanted" [buildPlans.Riosevka.variants.italic] + five = "oblique-flat-serifless" + six = "open-contour" + seven = "curly-serifless-crossbar" + nine = "open-contour" capital-f = "serifless" capital-g = "toothless-rounded-serifless-hooked" capital-j = "descending-serifed" capital-k = "curly-serifless" capital-m = "hanging-serifless" - capital-q = "curly-tailed" - capital-z = "curly-serifless-with-crossbar" + capital-q = "crossing-curly-tailed" + capital-z = "curly-serifless-with-horizontal-crossbar" + a = "single-storey-earless-corner-tailed" b = "toothed-serifless" d = "toothed-serifless" f = "tailed" - g = "single-storey-earless-rounded" - i = "tailed-serifed" + g = "double-storey-open" + i = "tailed" j = "serifless" k = "diagonal-tailed-cursive-serifless" l = "tailed-serifed" @@ -61,31 +69,43 @@ exportGlyphNames = false v = "cursive-serifless" w = "cursive-serifless" x = "curly-serifless" + y = "cursive-serifless" z = "curly-serifless-with-horizontal-crossbar" - five = "oblique-flat-serifless" - six = "open-contour" - seven = "curly-serifless-crossbar" - nine = "open-contour" - asterisk = "turn-hex-mid" + asterisk = "turn-penta-low" ampersand = "lower-open" at = "fourfold-solid-inner-tall" dollar = "interrupted" cent = "through" percent = "rings-continuous-slash-also-connected" - question = "smooth" + question = "corner-flat-hooked" pilcrow = "low" lig-ltgteq = "slanted" +[buildPlans.Riosevka.weights.Light] +shape = 300 +menu = 300 +css = 300 + [buildPlans.Riosevka.weights.Regular] shape = 400 menu = 400 css = 400 +[buildPlans.Riosevka.weights.SemiBold] +shape = 600 +menu = 600 +css = 600 + [buildPlans.Riosevka.weights.Bold] shape = 700 menu = 700 css = 700 +[buildPlans.Riosevka.weights.ExtraBold] +shape = 800 +menu = 800 +css = 800 + [buildPlans.Riosevka.widths.Normal] shape = 600 menu = 5