* swapped glyphs for Eng U+014A from Sami Eng to African Eng, the latter being more...
[dejavu.git] / dejavu-fonts / narrowmerge.sh
bloba0b1fe1e42a2703ab153ee843c4d894b9b5ea168
1 #!/bin/sh
3 # $Id$
5 # This script will merge new glyphs into the condensed faces.
7 # It scans for Condensed faces in the current directory and creates
8 # new files called DejaVuCondensed*.sfd.merged
10 # The script requires that all fonts are normalized with
11 # sfdnormalize.pl. The newly created .merged file is automatically
12 # normalized
15 for tofile in *Condensed*.sfd; do
16 fromfile=`echo $tofile | sed 's,Condensed,,'`
18 echo "Merging: $fromfile"
20 # making new narrow font
21 ./narrow.pe 90 $fromfile
23 # normalizing the new narrow font
24 ./sfdnormalize.pl $fromfile.narrow
26 # merging the new normalized narrow font into the existing Condensed font
27 mergelist=`./merge.pl $fromfile.narrow.norm $tofile $tofile.merged`
29 # normalizing the new merged font
30 ./sfdnormalize.pl $tofile.merged
32 # removing files that aren't needed anymore
33 if [ -e $fromfile.narrow ]; then
34 rm $fromfile.narrow
36 if [ -e $fromfile.narrow.norm ]; then
37 rm $fromfile.narrow.norm
39 if [ -e $tofile.merged ]; then
40 rm $tofile.merged
43 # renaming normalized file
44 if [ -e $tofile.merged.norm ]; then
45 mv $tofile.merged.norm $tofile.merged
48 done