Created
August 7, 2015 09:52
-
-
Save nhtua/0de703e43b9ddcc6b216 to your computer and use it in GitHub Desktop.
Convert multiple fonts to woff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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