--- ./fonts.dir-out.sh~ 2009-07-17 06:12:49.000000000 +0900 +++ ./fonts.dir-out.sh 2009-07-17 06:13:19.000000000 +0900 @@ -0,0 +1,67 @@ +#!/bin/sh +countline(){ + wc -l | sed -e 's/^[ ]*//' +} +fonts_dir_org=/opt/local/X11R6/lib/X11/fonts/truetype/fonts.dir +fonts_dir=fonts.dir +cp /dev/null $fonts_dir +for phase in 1 2; do + case $phase in + 1) + filter=countline + ;; + 2) + filter=cat + ;; + esac + ([ -f "$fonts_dir_org" ] && sed -ne '2,$p' "$fonts_dir_org" | fgrep -v ipa + for f_f in\ + ipa-mincho\ + ipa-pmincho\ + ipa-gothic\ + ipa-pgothic\ + ipa-uigothic\ +; do + case $f_f in + ipa-mincho) ttf=ipam.ttf ; spc=c ;; + ipa-pmincho) ttf=ipamp.ttf ; spc=p ;; + ipa-gothic) ttf=ipag.ttf ; spc=c ;; + ipa-pgothic) ttf=ipagp.ttf ; spc=p ;; + ipa-uigothic) ttf=ipagui.ttf ; spc=p ;; + esac + for kind in\ + normal\ + slant\ +; do + case $kind in + normal) + ai= + s=r + ;; + slant) + ai='ai=0.2:' + s=s + ;; + esac + cat <> $fonts_dir +done