Permalink
Browse files

added png export script

  • Loading branch information...
natsag2000 committed Sep 29, 2010
1 parent fc4ee36 commit 8481ff373af7bea3d6c05af85222a5a65bf60333
Showing with 24 additions and 0 deletions.
  1. +24 −0 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.