autohint.sh 1.4 KB

12345678910111213141516171819202122232425262728
  1. # ------------------------------------------------------------------
  2. #
  3. # autohint.sh
  4. # Copyright 2015 Christopher Simpkins
  5. # MIT license
  6. #
  7. # ------------------------------------------------------------------
  8. # DESCRIPTION
  9. # Applies hints to the Hack ttf font builds with ttfautohint
  10. # Executable: ttfautohint (http://www.freetype.org/ttfautohint/doc/ttfautohint.html)
  11. # Hack-Regular.ttf
  12. ttfautohint -l 4 -r 80 -G 350 -x 0 -H 181 -D latn -f latn -w G -W -t -X "" -I "../prehinted_builds/Hack-Regular.ttf" "../posthinted_builds/Hack-Regular.ttf"
  13. echo "Hack-Regular.ttf hinted and moved to ../posthinted_builds/Hack-Regular.ttf"
  14. # Hack-Bold.ttf
  15. ttfautohint -l 4 -r 80 -G 350 -x 0 -H 260 -D latn -f latn -w G -W -t -X "" -I -m "Hack-Bold-TA.txt" "../prehinted_builds/Hack-Bold.ttf" "../posthinted_builds/Hack-Bold.ttf"
  16. echo "Hack-Bold.ttf hinted and moved to ../posthinted_builds/Hack-Bold.ttf"
  17. # Hack-Italic.ttf
  18. ttfautohint -l 4 -r 80 -G 350 -x 0 -H 145 -D latn -f latn -w G -W -t -X "" -I -m "../prehinted_builds/Hack-Italic.ttf" "../posthinted_builds/Hack-Italic.ttf"
  19. echo "Hack-Italic.ttf hinted and moved to ../posthinted_builds/Hack-Italic.ttf"
  20. # Hack-BoldItalic.ttf
  21. ttfautohint -l 4 -r 80 -G 350 -x 0 -H 265 -D latn -f latn -w G -W -t -X "" -I "../prehinted_builds/Hack-BoldItalic.ttf" "../posthinted_builds/Hack-BoldItalic.ttf"
  22. echo "Hack-BoldItalic.ttf hinted and moved to ../posthinted_builds/Hack-BoldItalic.ttf"