Created
February 19, 2014 17:33
-
-
Save ahknight/9097032 to your computer and use it in GitHub Desktop.
Adds all given files to the given plist as properties of UIAppFonts (iOS).
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 | |
if [ -z $1 ]; then | |
echo "usage: `basename $0` /full/path/to/MYPROJ-Info.plist font1.(ttf|otf) [font2 font3 ...] #names of font files" | |
exit 1 | |
fi | |
PLIST=$1 | |
shift | |
FONTS=$@ | |
for FONT in $FONTS; do | |
defaults write "${PLIST//.plist/}" UIAppFonts -array-add "${FONT}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment