1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/japanese/epson-ttfonts/pkg-install
Maho Nakata 21c7da19f2 Add EPSON TrueTypeFontVer.3.0
Including:
MaruGothic, FutoMaruGothicB, FutoMinchotaiB, FutoGyosyotaiB
FutoKakuGothicB, KyokasyotaiM, SeiKaisyotaiM, GyoshotaiM

You can use these fonts if you are using following EPSON printer
LP-9800C/9600SPD/9600S/9600/9500C/9500CZ/9400/9300/9200SX/
9200S/9200PS2/9200/9100/9000/9000B/9000C/8900/8800CR/8800C/
8700PS3/8700/8600FXN/8600FX/8600FN/8600F/8600/8500C/8500/
8400FXN/8400FX/8400FN/8400F/8400/8300S/8300F/8300C/8300/
8200PS2/8200CPD/8200C/8200/8100/8000SX/8000SE/8000S/8000C/
8000/7900/7800C/7700/7500/7100/7000G/7000C/7000/6100/
3000C/3000/2500/2400/2200/2000LT/2000C/2000/1900N/1900/
1800/1700S/1700/1600/1500S/1500C/1500/1400/1300U/1300/
1200/1000/900/800S/800

WWW: http://www.i-love-epson.co.jp/download2/printer/driver/win/page/ttf30.htm
2005-03-19 11:13:42 +00:00

21 lines
655 B
Bash

#!/bin/sh
XFLDNAME="-epson-EPSON"
FONTNAME=epson
FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType
if [ "$2" = "PRE-INSTALL" ]; then
echo "Please add ${FONTDIR} to your /etc/x11/xorg.conf file"
exit 0
fi
cd ${FONTDIR}
touch fonts.dir
sed -e "/${XFLDNAME}/d" fonts.dir > fonts.dir.tmp
numfonts=$(echo $(cat fonts.dir.tmp fonts.dir.${FONTNAME} | wc -l) - 2 | bc)
echo ${numfonts} > fonts.dir
sed -e 1d fonts.dir.tmp >> fonts.dir
sed -e 1d fonts.dir.$FONTNAME >> fonts.dir
touch fonts.alias
sed -e "/^${XFLDNAME}/d" fonts.alias > fonts.alias.tmp
mv -f fonts.alias.tmp fonts.alias
cat fonts.alias.${FONTNAME} >> fonts.alias
rm -f fonts.dir.tmp fonts.alias.tmp