Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo 'Never give up. Never surrender.'
- if [ ! -e /tmp/fonttools-ttx ]
- then
- mkdir /tmp/fonttools-ttx
- fi
- for i in `find / -name '*[oOtT][tT][fF]'`
- do
- ttx -d /tmp/fonttools-ttx -t OS/2 $i > /dev/null
- done
- cd /tmp/fonttools-ttx
- echo 'Number of TTF and OTF font files found: '`ls *.ttx|wc -l`
- echo 'Listing pictorial fonts with contrast of 10 Horizontal Low, 11 Horizontal Medium or 12 Horizontal High:'
- for i in *.ttx
- do
- if [ `grep -c 'bFamilyType value="4"' $i` -eq 1 ]
- then
- if [ `grep -c 'bContrast value="10"' $i` -eq 1 ]
- then
- echo '10 Horizontal Low in: '`basename $i .ttx`
- fi
- if [ `grep -c 'bContrast value="11"' $i` -eq 1 ]
- then
- echo '11 Horizontal Medium in: '`basename $i .ttx`
- fi
- if [ `grep -c 'bContrast value="12"' $i` -eq 1 ]
- then
- echo '12 Horizontal High in: '`basename $i .ttx`
- fi
- fi
- done
- echo 'Remember to empty /tmp/fonttools-ttx before rerunning this script.'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement