|
@@ -28,10 +28,6 @@ fi
|
|
|
|
|
|
if [ "$1" = "--install-dependencies" ]
|
|
|
then
|
|
|
-
|
|
|
- pip install --upgrade fontmake
|
|
|
-
|
|
|
- pip install --upgrade fonttools
|
|
|
|
|
|
tools/scripts/install/ttfautohint-build.sh
|
|
|
|
|
@@ -40,22 +36,7 @@ fi
|
|
|
|
|
|
INSTALLFLAG=0
|
|
|
|
|
|
-echo "Confirming that build dependencies are installed..."
|
|
|
-echo " "
|
|
|
-
|
|
|
-if ! which fontmake
|
|
|
- then
|
|
|
- echo "Unable to install fontmake with 'pip install fontmake'. Please attempt a manual install of this build dependency and then repeat your build attempt." 1>&2
|
|
|
- INSTALLFLAG=1
|
|
|
-fi
|
|
|
-
|
|
|
-if ! python -c "import fontTools"
|
|
|
- then
|
|
|
- echo "Unable to install fontTools with 'pip install fonttools'. Please attempt a manual install of this build dependency and then repeat your build attempt." 1>&2
|
|
|
- INSTALLFLAG=1
|
|
|
-else
|
|
|
- echo "fontTools Python library identified"
|
|
|
-fi
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -106,21 +87,21 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
-if ! fontmake -u "source/Hack-Regular.ufo" -o ttf
|
|
|
+if ! pipenv run fontmake -u "source/Hack-Regular.ufo" -o ttf
|
|
|
then
|
|
|
echo "Unable to build the Hack-Regular variant set. Build canceled." 1>&2
|
|
|
exit 1
|
|
|
fi
|
|
|
|
|
|
|
|
|
-if ! fontmake -u "source/Hack-Bold.ufo" -o ttf
|
|
|
+if ! pipenv run fontmake -u "source/Hack-Bold.ufo" -o ttf
|
|
|
then
|
|
|
echo "Unable to build the Hack-Bold variant set. Build canceled." 1>&2
|
|
|
exit 1
|
|
|
fi
|
|
|
|
|
|
|
|
|
-if ! fontmake -u "source/Hack-Italic.ufo" -o ttf
|
|
|
+if ! pipenv run fontmake -u "source/Hack-Italic.ufo" -o ttf
|
|
|
then
|
|
|
echo "Unable to build the Hack-Italic variant set. Build canceled." 1>&2
|
|
|
exit 1
|
|
@@ -128,7 +109,7 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
-if ! fontmake -u "source/Hack-BoldItalic.ufo" -o ttf
|
|
|
+if ! pipenv run fontmake -u "source/Hack-BoldItalic.ufo" -o ttf
|
|
|
then
|
|
|
echo "Unable to build the Hack-BoldItalic variant set. Build canceled." 1>&2
|
|
|
exit 1
|
|
@@ -140,7 +121,7 @@ fi
|
|
|
echo " "
|
|
|
echo "Attempting DSIG table fixes with fontbakery..."
|
|
|
echo " "
|
|
|
-if ! python postbuild_processing/fixes/fix-dsig.py master_ttf/*.ttf
|
|
|
+if ! pipenv run python postbuild_processing/fixes/fix-dsig.py master_ttf/*.ttf
|
|
|
then
|
|
|
echo "Unable to complete DSIG table fixes on the release files"
|
|
|
exit 1
|
|
@@ -150,7 +131,7 @@ fi
|
|
|
echo " "
|
|
|
echo "Attempting fstype fixes with fontbakery..."
|
|
|
echo " "
|
|
|
-if ! python postbuild_processing/fixes/fix-fstype.py master_ttf/*.ttf
|
|
|
+if ! pipenv run python postbuild_processing/fixes/fix-fstype.py master_ttf/*.ttf
|
|
|
then
|
|
|
echo "Unable to complete fstype fixes on the release files"
|
|
|
exit 1
|