Created
April 29, 2016 19:21
-
-
Save snodnipper/8f94f016b4c79c83fcb53c7b1359a649 to your computer and use it in GitHub Desktop.
Checkout Google Fonts and create Mapbox PBFs
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 | |
git clone git@github.com:google/fonts.git | |
git clone git@github.com:mapbox/node-fontnik.git | |
cd node-fontnik/ | |
npm install | |
cd .. | |
echo "converting fonts" | |
find ./fonts/apache -type f -name *.ttf | sed -e 's/\(.*\/\)\([^/]*\)\(.ttf\)$/mkdir -p mbfonts\/\2;.\/node-fontnik\/bin\/build-glyphs \1\2\3 mbfonts\/\2 /g' | bash | |
echo "done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment