From 1fce61fe50e5c6c2c08aa04f98a658d6c1c9f100 Mon Sep 17 00:00:00 2001 From: kiliman Date: Sun, 13 Dec 2020 10:11:28 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Update=20build=20to=20call=20fon?= =?UTF-8?q?ttools=20feaLib?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.bat | 2 ++ build.sh | 12 +++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/build.bat b/build.bat index ff18de5..32587a2 100644 --- a/build.bat +++ b/build.bat @@ -31,4 +31,6 @@ if not exist .\ligature\%lig%\glyphs\* exit /b ttx -f .\original\%otf%.otf node index.js %otf% %flags% ttx -f .\build\%lig%.ttx +fonttools feaLib -v -o ".\build\%lig%.otf" .\features\default.fea ".\build\%lig%.otf" + exit /b diff --git a/build.sh b/build.sh index 3ccf9d0..44086c9 100755 --- a/build.sh +++ b/build.sh @@ -16,11 +16,13 @@ build_font() { return fi - echo Building $1 + echo Building "$1" ttx -f "./original/$otf.otf" - node index.js $otf $flags + node index.js "$otf" "$flags" - ttx -f ./build/$1.ttx + ttx -f "./build/$1.ttx" + + fonttools feaLib -v -o "./build/$1.otf" ./features/default.fea "./build/$1.otf" } flags= @@ -32,10 +34,10 @@ fi if [ -n "$1" ] then # build specified font - build_font $1 $flags + build_font "$1" "$flags" else # build all available fonts for d in ./ligature/*/ ; do - build_font $(basename $d) $flags + build_font "$(basename "$d")" "$flags" done fi