line30.sh 538 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. # ////////////////////////////////////////////////////////////
  3. #
  4. # line30.sh
  5. # A shell script that modifies all .otf and .ttf fonts in the
  6. # working directory to 30% UPM line spacing
  7. # Copyright 2016 Christopher Simpkins
  8. # MIT License
  9. #
  10. # ////////////////////////////////////////////////////////////
  11. # Check for font-line application
  12. which font-line
  13. # if not present install it
  14. if [[ $? -ne 0 ]]; then
  15. pip install font-line
  16. fi
  17. # modify all .ttf and .otf files with 30% UPM line spacing
  18. font-line percent 30 *.ttf *.otf