Skip to content

Instantly share code, notes, and snippets.

@davelester
Created October 6, 2012 23:40
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 davelester/3846526 to your computer and use it in GitHub Desktop.
Save davelester/3846526 to your computer and use it in GitHub Desktop.
generating a single file of ofl fonts and their font categories
#!/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