Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc4ee36
commit 8481ff3
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |