Date: Sat, 21 Dec 2002 23:04:06 +0800 (CST) From: Statue <statue@freebsd.sinica.edu.tw> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/46445: Update port: chinese/ttfm Message-ID: <20021221150406.CA094623@freebsd.sinica.edu.tw>
next in thread | raw e-mail | index | archive | help
>Number: 46445 >Category: ports >Synopsis: Update port: chinese/ttfm >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sat Dec 21 07:10:09 PST 2002 >Closed-Date: >Last-Modified: >Originator: Statue >Release: FreeBSD 4.7-PRERELEASE i386 >Organization: >Environment: System: FreeBSD freebsd.sinica.edu.tw 4.7-PRERELEASE FreeBSD 4.7-PRERELEASE #2: Mon Sep 9 10:45:46 CST 2002 ycheng@freebsd.sinica.edu.tw:/usr/src/sys/compile/GENERIC i386 >Description: - fix english font width problem >How-To-Repeat: >Fix: diff -ruN ttfm.orig/files/patch-modules::xttfm.ttfm ttfm/files/patch-modules::xttfm.ttfm --- ttfm.orig/files/patch-modules::xttfm.ttfm Thu Jan 1 08:00:00 1970 +++ ttfm/files/patch-modules::xttfm.ttfm Sat Dec 21 23:01:37 2002 @@ -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 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021221150406.CA094623>