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
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
36 if [ -e $fromfile.narrow.norm
]; then
37 rm $fromfile.narrow.norm
39 if [ -e $tofile.merged
]; then
43 # renaming normalized file
44 if [ -e $tofile.merged.norm
]; then
45 mv $tofile.merged.norm
$tofile.merged