Created
October 6, 2012 23:40
-
-
Save davelester/3846526 to your computer and use it in GitHub Desktop.
generating a single file of ofl fonts and their font categories
This file contains 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 | |
cd /Users/davelester/Code/googlefontdirectory/ofl/ | |
for i in $( ls ); do | |
cd $i | |
echo 'Font:' $i | |
cat "METADATA.json" | python -c 'import json,sys;obj=json.loads(sys.stdin.read());print "Category: " + ob$ | |
cd ../ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment