Skip to content

Commit

Permalink
added png export script
Browse files Browse the repository at this point in the history
  • Loading branch information
natsag2000 committed Sep 29, 2010
1 parent fc4ee36 commit 8481ff3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions scripts/generate_png_glyphs.sh
@@ -0,0 +1,24 @@
#!/bin/tcsh

# creates png glyph image from glyph name
# $1 = font path
# $2 = glyph name list
# $3 = output folder
# =============================================
set fontname=$1
set glyphlist=$2
set outputfolder=$3
set PWD=`pwd`
foreach G (`cat $glyphlist`)
$PWD/exportglyph.pe $fontname $G
end

if ( ! -d $outputfolder ) then
mkdir $outputfolder
endif

foreach File (*.bmp)
set newname=`basename $File | sed 's/\$//g' | sed 's/.bmp/.png/'`
convert -rotate 90 -transparent white -resize 50% $File $outputfolder/$newname
rm $File
end

0 comments on commit 8481ff3

Please sign in to comment.