--- ./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,61 @@ +#!/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 vl- + for f_f in\ + vl-gothic\ + vl-pgothic\ +; do + case $f_f in + vl-gothic) ttf=VL-Gothic-Regular.ttf ; spc=c ;; + vl-pgothic) ttf=VL-PGothic-Regular.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