Skip to content

Commit

Permalink
🐛 Fix issue with Light weights not building due to aggressive replace
Browse files Browse the repository at this point in the history
Closes #15
  • Loading branch information
kiliman committed Jul 25, 2019
1 parent eb16392 commit 843fa09
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ if not "%1%"=="" (

rem build all fonts
for /d %%d in (.\ligature\*) do call :build_font %%~nd
exit /b
exit /b


:build_font
set lig=%1
set otf=%lig:Lig=%
set otf=%lig:Lig-=-%

if not exist .\original\%otf%.otf exit /b
if not exist .\ligature\%lig%\charstrings.xml exit /b
Expand Down
16 changes: 8 additions & 8 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ mkdir -p build

build_font() {
lig="$1"
otf=${lig/Lig/}
otf=${lig/Lig-/-}

if [ ! -e "./original/$otf.otf" ]
then
return
if [ ! -e "./original/$otf.otf" ]
then
return
fi
if [ ! -e "./ligature/$lig/charstrings.xml" ]
then
return
if [ ! -e "./ligature/$lig/charstrings.xml" ]
then
return
fi

echo Building $1
ttx -f "./original/$otf.otf"
node index.js $otf
Expand Down

0 comments on commit 843fa09

Please sign in to comment.