diff options
Diffstat (limited to 'chinese/moettf/pkg-install')
-rw-r--r-- | chinese/moettf/pkg-install | 17 |
1 files changed, 12 insertions, 5 deletions
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 |