- #!/bin/bash
-
-
-
-
-
-
-
-
-
-
-
-
-
- convert=./fontconvert
- inpath=~/Desktop/freefont/
- outpath=../Fonts/
- fonts=(FreeMono FreeSans FreeSerif)
- styles=("" Bold Italic BoldItalic Oblique BoldOblique)
- sizes=(9 12 18 24)
-
- for f in ${fonts[*]}
- do
- for index in ${!styles[*]}
- do
- st=${styles[$index]}
- for si in ${sizes[*]}
- do
- infile=$inpath$f$st".ttf"
- if [ -f $infile ]
- then
- outfile=$outpath$f$st$si"pt7b.h"
-
- $convert $infile $si > $outfile
- fi
- done
- done
- done
|