freebsd-ports/print/latex-cjk/scripts/installtfm.sh
Xin LI 8873423497 Several improvements over chinese/CJK port, to make it possible to
support CJK PDF builds.

Submitted by:	intron <intron at intron ac>
Approved by:	Rong-En Fan <rafan at infor org> (maintainer, with changes)
Approved by:	clive
2006-03-16 06:22:02 +00:00

23 lines
550 B
Bash

#!/bin/sh
PATH=/bin:/usr/bin:${LOCALBASE}/bin; export PATH
TFMNAME="$1"
TTFNAME="$2"
SFD="$3"
TEXMFMAIN=`kpsexpand '$TEXMFMAIN'`
SLANT=0.3
INSTALL_DIR="/usr/bin/install -d -m 0755 -o root -g wheel"
CJKTTFDIR=${TEXMFMAIN}/fonts/truetype/CJK
TFMDIR=${TEXMFMAIN}/fonts/tfm/CJK/${TFMNAME}
#Generate and install TFM files
${INSTALL_DIR} ${TFMDIR}
(
cd ${TFMDIR}
ttf2tfm ${CJKTTFDIR}/${TTFNAME} -q -P 3 -E 1 ${TFMNAME}@${TEXMFMAIN}/ttf2pk/${SFD}@
ttf2tfm ${CJKTTFDIR}/${TTFNAME} -q -P 3 -E 1 -s ${SLANT} ${TFMNAME}sl@${TEXMFMAIN}/ttf2pk/${SFD}@
)