diff options
author | ijliao <ijliao@FreeBSD.org> | 2002-12-23 02:18:21 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2002-12-23 02:18:21 +0800 |
commit | f689726f72bebe6e37dd60c1e9a0079e5498fd2c (patch) | |
tree | b34b6071b7b515e4650ade243a487772e5d6f7ac /chinese/ttfm/files | |
parent | 025a38b4294759e6748a1b8c15c266086116cc7e (diff) | |
download | freebsd-ports-gnome-f689726f72bebe6e37dd60c1e9a0079e5498fd2c.tar.gz freebsd-ports-gnome-f689726f72bebe6e37dd60c1e9a0079e5498fd2c.tar.zst freebsd-ports-gnome-f689726f72bebe6e37dd60c1e9a0079e5498fd2c.zip |
- fix english font width problem
PR: 46445
Submitted by: Statue <statue@freebsd.sinica.edu.tw>
Diffstat (limited to 'chinese/ttfm/files')
-rw-r--r-- | chinese/ttfm/files/patch-modules::xttfm.ttfm | 32 |
1 files changed, 32 insertions, 0 deletions
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 |