aboutsummaryrefslogtreecommitdiff
path: root/chinese
diff options
context:
space:
mode:
Diffstat (limited to 'chinese')
-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