1 --- libwmf-0.2.1/fonts/libwmf-fontmap.in.orig Sat May 19 14:12:06 2001
2 +++ libwmf-0.2.1/fonts/libwmf-fontmap.in Mon Jun 11 13:24:44 2001
6 if test "x$font_dir" = "x"; then
7 - font_dir="@WMF_FONTDIR@"
8 + font_dir="@WMF_FONTDIR@ /usr/share/fonts/Type1 /usr/share/fonts/TTF"
10 - font_dir="$font_dir @WMF_FONTDIR@"
11 + font_dir="$font_dir @WMF_FONTDIR@ /usr/share/fonts/Type1 /usr/share/fonts/TTF"
14 if test $echo_help = yes; then
19 - for j in `ls *.afm 2> /dev/null`; do
20 - font_root=`echo $j | sed s/.afm//`
21 - font_metrics=$font_cwd/$font_root.afm
22 + for j in `ls *.afm afm/*.afm 2> /dev/null`; do
23 + font_root=`echo $j | sed -e 's@.*/@@' -e 's@\.afm@@'`
24 + font_metrics=$font_cwd/$j
26 if test -r $font_cwd/$font_root.pfa; then
27 font_glyphs=$font_cwd/$font_root.pfa
30 if test "x$font_glyphs" != "x"; then
32 - FontName=`grep "FontName " $font_metrics | sed "s/FontName //"`
33 - FullName=`grep "FullName " $font_metrics | sed "s/FullName //"`
34 - FamilyName=`grep "FamilyName " $font_metrics | sed "s/FamilyName //"`
35 - Weight=`grep "Weight " $font_metrics | sed "s/Weight //"`
36 + FontName=`grep "FontName " $font_metrics | sed "s/FontName //" | tr -d '\r'`
37 + FullName=`grep "FullName " $font_metrics | sed "s/FullName //" | tr -d '\r'`
38 + FamilyName=`grep "FamilyName " $font_metrics | sed "s/FamilyName //" | tr -d '\r'`
39 + Weight=`grep "Weight " $font_metrics | sed "s/Weight //" | tr -d '\r'`
41 echo '<font format="type1" metrics="'$font_metrics'" glyphs="'$font_glyphs'" name="'$FontName'" fullname="'$FullName'" familyname="'$FamilyName'" weight="'$Weight'" version="0.1" alias="'$FontName'"/>' >> $font_map