diff options
author | foxfair <foxfair@FreeBSD.org> | 1999-11-02 02:02:27 +0800 |
---|---|---|
committer | foxfair <foxfair@FreeBSD.org> | 1999-11-02 02:02:27 +0800 |
commit | c4a1f96f9e5057496b07bee5698207ef91db33f7 (patch) | |
tree | b42bb9d5b3c305acbaf87b9dc570b6b127f6e4b9 /chinese/moettf | |
parent | ff89efb43132dc64727f271b3b3d4a15dadd2e91 (diff) | |
download | freebsd-ports-graphics-c4a1f96f9e5057496b07bee5698207ef91db33f7.tar.gz freebsd-ports-graphics-c4a1f96f9e5057496b07bee5698207ef91db33f7.tar.zst freebsd-ports-graphics-c4a1f96f9e5057496b07bee5698207ef91db33f7.zip |
PR: 14642
Submitted by: clive@CirX.org
Reviewed by: the maintainer
Add *-bold-i-* to fonts.alias by default.
Diffstat (limited to 'chinese/moettf')
-rw-r--r-- | chinese/moettf/Makefile | 4 | ||||
-rw-r--r-- | chinese/moettf/pkg-install | 17 |
2 files changed, 14 insertions, 7 deletions
diff --git a/chinese/moettf/Makefile b/chinese/moettf/Makefile index aa9ca9afe1e..b24576803aa 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 53514e6b078..7dafd5904d2 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 |