Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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