From 49fb641519b153de88c897ef1c91ddaf4712be18 Mon Sep 17 00:00:00 2001 From: Foxfair Hu Date: Mon, 1 Nov 1999 18:02:27 +0000 Subject: PR: 14642 Submitted by: clive@CirX.org Reviewed by: the maintainer Add *-bold-i-* to fonts.alias by default. --- chinese/moettf/Makefile | 4 ++-- chinese/moettf/pkg-install | 17 ++++++++++++----- 2 files changed, 14 insertions(+), 7 deletions(-) (limited to 'chinese') 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 +# Whom: Keith Jang # # $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 -- cgit v1.2.3