From 62691004858003662780bc0e7c5623f209d21222 Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Sun, 22 Dec 2002 18:18:21 +0000 Subject: - fix english font width problem PR: 46445 Submitted by: Statue --- chinese/ttfm/files/patch-modules::xttfm.ttfm | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 chinese/ttfm/files/patch-modules::xttfm.ttfm (limited to 'chinese') diff --git a/chinese/ttfm/files/patch-modules::xttfm.ttfm b/chinese/ttfm/files/patch-modules::xttfm.ttfm new file mode 100644 index 000000000000..73ca5ffc8f53 --- /dev/null +++ b/chinese/ttfm/files/patch-modules::xttfm.ttfm @@ -0,0 +1,32 @@ +--- modules/xttfm.ttfm.orig Sat Dec 21 22:56:45 2002 ++++ modules/xttfm.ttfm Sat Dec 21 23:01:09 2002 +@@ -129,18 +129,25 @@ + fontproperties=$7 + fontencoding=$8 + ++ if [ "$fontproperties" = "m" ] ; then ++ fontproperties="p" ++ FONTFACE="fn=1:" ++ else ++ FONTFACE="" ++ fi ++ + # Create and update fonts.scale + touch $XTTFFONTPATH/fonts.scale + # Delete the first line, and duplicate entries if exist. + # We can't use uniq(1) here, since filenames may start with numbers. + sed -e "1d" $XTTFFONTPATH/fonts.scale |grep -iv "$fontfoundry-$fontfamily.*-$fontencoding$" > $TEMPFILE + +- echo "$targetname -$fontfoundry-$fontfamily-$fontweight-$fontslant-$fontwidth--0-0-0-0-$fontproperties-0-$fontencoding" >> $TEMPFILE ++ echo "${FONTFACE}$targetname -$fontfoundry-$fontfamily-$fontweight-$fontslant-$fontwidth--0-0-0-0-$fontproperties-0-$fontencoding" >> $TEMPFILE + # If it's medium-r, make a {medium,bold}-{i,r} full suite + if [ "X$fontweight" = "Xmedium" ] && [ "X$fontslant" = "Xr" ]; then +- echo "ai=0.3:$targetname -$fontfoundry-$fontfamily-medium-i-$fontwidth--0-0-0-0-$fontproperties-0-$fontencoding" >> $TEMPFILE +- echo "ds=y:$targetname -$fontfoundry-$fontfamily-bold-r-$fontwidth--0-0-0-0-$fontproperties-0-$fontencoding" >> $TEMPFILE +- echo "ds=y:ai=0.3:$targetname -$fontfoundry-$fontfamily-bold-i-$fontwidth--0-0-0-0-$fontproperties-0-$fontencoding" >> $TEMPFILE ++ echo "${FONTFACE}ai=0.3:$targetname -$fontfoundry-$fontfamily-medium-i-$fontwidth--0-0-0-0-$fontproperties-0-$fontencoding" >> $TEMPFILE ++ echo "${FONTFACE}ds=y:$targetname -$fontfoundry-$fontfamily-bold-r-$fontwidth--0-0-0-0-$fontproperties-0-$fontencoding" >> $TEMPFILE ++ echo "${FONTFACE}ds=y:ai=0.3:$targetname -$fontfoundry-$fontfamily-bold-i-$fontwidth--0-0-0-0-$fontproperties-0-$fontencoding" >> $TEMPFILE + fi + echo `cat $TEMPFILE |wc -l` > $XTTFFONTPATH/fonts.scale + cat $TEMPFILE >> $XTTFFONTPATH/fonts.scale -- cgit v1.2.3