2 # $FreeBSD: japanese/font-mplus-ipa/files/pkg-install.in 340719 2014-01-22 15:52:06Z mat $
4 X_FONTSDIR=%%X_FONTSDIR%%/TTF
11 *-ipa-M*|[0-9]*|"") ;;
32 case "${_poc}:${_enc}" in
33 p:jisx0201.1976-*) PFIX="bw=0.5" ;;
34 c:jisx0201.1976-*) PFIX="bw=0.5" ;;
39 set -- "${ROMA}" medium-r \
42 ${ITAL}:${BOLD} bold-i \
44 ${OBLI}:${BOLD} bold-o \
46 ${RITA}:${BOLD} bold-ri \
48 ${ROBL}:${BOLD} bold-ro
50 _prefix="${PFIX}:$1"; shift
52 printf "%s:%s -%s-%s-%s-normal--0-0-0-0-%s-0-%s\n" \
53 $_prefix $_file $_vendor $_fname $_variant $_poc $_enc
54 done | sed -e 's,::,:,g' -e 's,^:,,'
59 for ENC in iso8859-1 iso10646-1 jisx0201.1976-0 jisx0208.1983-0 jisx0208.1990-0
61 make_xlfd $ENC M+2VM+IPAG-circle.ttf ipa M+2VM+IPAG_circle c
62 make_xlfd $ENC M+1VM+IPAG-circle.ttf ipa M+1VM+IPAG_circle c
63 make_xlfd $ENC M+1P+IPAG.ttf ipa M+1P+IPAG p
64 make_xlfd $ENC M+1P+IPAG-circle.ttf ipa M+1P+IPAG_circle p
65 make_xlfd $ENC M+2P+IPAG.ttf ipa M+2P+IPAG p
66 make_xlfd $ENC M+2P+IPAG-circle.ttf ipa M+2P+IPAG_circle p
72 _L=0; while read _IN; do _L=$((${_L}+1)); done; echo ${_L}
79 (catfontsdir < fonts.dir; addentries) > fonts.dir.tmp
80 nfonts < fonts.dir.tmp > fonts.dir
81 cat fonts.dir.tmp >> fonts.dir
86 catfontsdir < fonts.dir > fonts.dir.tmp
87 nfonts < fonts.dir.tmp > fonts.dir
88 cat fonts.dir.tmp >> fonts.dir
90 if [ -r fonts.dir -a `wc -l < fonts.dir` = 1 ]; then
93 rmdir ${X_FONTSDIR} > /dev/null 2>&1 || true