aboutsummaryrefslogtreecommitdiff
path: root/chinese/moettf
diff options
context:
space:
mode:
authorFoxfair Hu <foxfair@FreeBSD.org>1999-11-01 18:02:27 +0000
committerFoxfair Hu <foxfair@FreeBSD.org>1999-11-01 18:02:27 +0000
commit49fb641519b153de88c897ef1c91ddaf4712be18 (patch)
treef99fe62c096bfd95752e0635fe1d6b5cceb7b24e /chinese/moettf
parent7fa1f5036498b0893a3602da521ea111c41a0d73 (diff)
downloadports-49fb641519b153de88c897ef1c91ddaf4712be18.tar.gz
ports-49fb641519b153de88c897ef1c91ddaf4712be18.zip
PR: 14642
Submitted by: clive@CirX.org Reviewed by: the maintainer Add *-bold-i-* to fonts.alias by default.
Notes
Notes: svn path=/head/; revision=22843
Diffstat (limited to 'chinese/moettf')
-rw-r--r--chinese/moettf/Makefile4
-rw-r--r--chinese/moettf/pkg-install17
2 files changed, 14 insertions, 7 deletions
diff --git a/chinese/moettf/Makefile b/chinese/moettf/Makefile
index aa9ca9afe1ea..b24576803aa8 100644
--- a/chinese/moettf/Makefile
+++ b/chinese/moettf/Makefile
@@ -1,7 +1,7 @@
# New ports collection makefile for: Chinese Big5 TrueType fonts
# Version required: 1.0
# Date created: 9 July 1999
-# Whom: Keith Jang <jtjang@gcn.net.tw>
+# Whom: Keith Jang <keith@freebsd.sinica.edu.tw>
#
# $FreeBSD$
#
@@ -13,7 +13,7 @@ MASTER_SITES= ftp://ftp.cc.ntut.edu.tw/OS/Linux/packages/chinese/fonts/twmoefont
ftp://www.edu.tw/download/mandr/allbook/lishu/
DISTFILES= moe_kai.ttf moe_sung.ttf edustd-15.exe
-MAINTAINER= jtjang@gcn.net.tw
+MAINTAINER= keith@freebsd.sinica.edu.tw
BUILD_DEPENDS= unrar:${PORTSDIR}/archivers/unrar
LIB_DEPENDS= font.1:${PORTSDIR}/x11-servers/XttXF86srv-common
diff --git a/chinese/moettf/pkg-install b/chinese/moettf/pkg-install
index 53514e6b0782..7dafd5904d28 100644
--- a/chinese/moettf/pkg-install
+++ b/chinese/moettf/pkg-install
@@ -30,15 +30,22 @@ do
done
# Update fonts.alias, font size ranges from 8 to 128.
+# Medium/Bold & Roman/Italic variations are also added.
SIZE=8
touch fonts.alias
sed -e '/^-moe-/d' -e '/^-twmoe-/d' fonts.alias > fonts.alias.tmp
mv -f fonts.alias.tmp fonts.alias
for FAMILY in kai lishu sung
do
- (while [ ${SIZE} -le 128 ]
+ (for WEIGHT in medium bold
do
- echo -moe-${FAMILY}-medium-r-normal--${SIZE}-`expr ${SIZE} \* 10`-0-0-c-`expr ${SIZE} \* 10`-big5-0 -twmoe-${FAMILY}-medium-r-normal--${SIZE}-`expr ${SIZE} \* 10`-0-0-c-`expr ${SIZE} \* 10`-big5-0 >> fonts.alias;
- SIZE=`expr ${SIZE} + 1`;
- done)
-done
+ (for SLANT in r i
+ do
+ (while [ ${SIZE} -le 128 ]
+ do
+ echo -moe-${FAMILY}-${WEIGHT}-${SLANT}-normal--${SIZE}-`expr ${SIZE} \* 10`-0-0-c-`expr ${SIZE} \* 10`-big5-0 -twmoe-${FAMILY}-${WEIGHT}-${SLANT}-normal--${SIZE}-`expr ${SIZE} \* 10`-0-0-c-`expr ${SIZE} \* 10`-big5-0 >> fonts.alias;
+ SIZE=`expr ${SIZE} + 1`;
+ done) # SIZE
+ done) # SLANT
+ done) # WEIGHT
+done # FAMILY