Skip to content

Instantly share code, notes, and snippets.

@nhtua
Created August 7, 2015 09:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nhtua/0de703e43b9ddcc6b216 to your computer and use it in GitHub Desktop.
Save nhtua/0de703e43b9ddcc6b216 to your computer and use it in GitHub Desktop.
Convert multiple fonts to woff
#! /bin/bash
# Put this file into woff tool's dir, which was compiled before
# To convert multiple file, type:
# ./run_woff.sh /path/to/fonts/dir <format(otf|ttf)>
fontdir=$1
fontext=$2
files=($fontdir/*.$2)
for item in ${files[*]}
do
./woff2_compress $item
printf "Convert %s to woff success. \n" $item
done
printf "Convert completed!\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment