ttfm O@Ӥp{X²檺 scriptAФjaϥΡB^
bug üg ttfm Ҳ!!

Download:

ftp://cle.linux.org.tw/pub/CLE/devel/platin/

Ѷ} makeA]tFG

1. ttfinfo: @ӥiHΨŪ ttf r榡Tp{Ad
pUG

$ ./ttfinfo /usr/share/fonts/ttf/bkai00mu.ttf
TTFINFO_FONT_FILE="/usr/share/fonts/ttf/bkai00mu.ttf"
TTFINFO_FONT_NAME="ZenKai_Medium"
TTFINFO_FOUNDRY_NAME="Arphic"
TTFINFO_WEIGHT_NAME="medium"
TTFINFO_WIDTH="normal"
TTFINFO_NUMCMAP="2"
TTFINFO_CMAP0="1,0"
TTFINFO_CMAPNAME0="Apple,Roman"
TTFINFO_CMAP1="3,1"
TTFINFO_CMAPNAME1="Windows,Unicode"
TTFINFO_MAPNUM="1"
TTFINFO_FONTMAP1="-Arphic-ZenKai_Medium-medium-r-normal--0-0-0-0-c-0-big5-0"

$ ./ttfinfo /mnt/windows/fonts/mingliu.ttc
TTFINFO_FONT_FILE="/mnt/windows/fonts/mingliu.ttc"
TTFINFO_FONT_NAME="MingLiU"
TTFINFO_FOUNDRY_NAME="DynaLab"
TTFINFO_WEIGHT_NAME="medium"
TTFINFO_WIDTH="normal"
TTFINFO_NUMCMAP="2"
TTFINFO_CMAP0="1,0"
TTFINFO_CMAPNAME0="Apple,Roman"
TTFINFO_CMAP1="3,1"
TTFINFO_CMAPNAME1="Windows,Unicode"
TTFINFO_MAPNUM="2"
TTFINFO_FONTMAP1="-DynaLab-MingLiU-medium-r-normal--0-0-0-0-c-0-big5-0"
TTFINFO_FONTMAP2="-DynaLab-MingLiU-medium-r-normal--0-0-0-0-m-0-iso8859-1"

2. ttfinst.tk: ϧΤ tk scriptAiHΨӦw˦r -- 
ĳϥ...

3. ttfm.sh: shell scriptAwƧ@ ttf r`ޡG

$ ./ttfm.sh --help

True-Type Font Manager 0.9
       
Usage: /usr/sbin/ttfm.sh [option]
       
       --add <file>...    install ttf font
       --remove <file>... remove ttf font from the system
       --list <module>... list all ttf fonts on the system
       --modules          list all ttf manager modules on the system
       --setdefault <module> <file> 
                          set default font of module to file
       --initm <module>.. initialize modules
       --help             show this info

oӵ{|hQΦ /usr/share/fonts/install/ UH
".ttfm" iɨӦwˡB]wrAo .ttfm ɮקں
 ttfm moduleAѻݭnϥΨ ttf r{ѡAoǼҲե
ŦXHUnDG

a. iWߨϥΡA@wzL ttfm.sh IsC
b. tΦrؿw]Au޲zۤvҲզrؿUɮסC
c.  ttf ɮצmݨDP ttfm.sh tΦrؿɡAH
   link 覡BzA copy ttf ɮסArɤʨtΦr
   ɮסC
d. Ѧܤ֤UXӰѼƨ ttfm.sh ϥΡG
    --name         ܼҲզW
    --list         CXҲպ޲z{rPW
    --add <file>   W[rAfile @rɮצW١Ap
                   /mnt/windows/fonts/mingliu.ttc
    --remove <file>    rAfile rɮצW١AiHO
                   fullpathBiHOɮצWAp
                   /usr/share/fonts/ttf/bkai00mu.ttf or bkai00mu.ttf
    --setdefault <file>   ]ww]rAfile rɮצW
                   ١AiHOfullpathBiHOɮצWAp
                   /usr/share/fonts/ttf/bkai00mu.ttf or bkai00mu.ttf

4. xttfm.ttfm: X-TT rw˼ҲաG

$ ./xttfm.ttfm --help

X True-Type Font Manager. Version 0.9

Usage: ./xttfm.ttfm [option]

       --add <file>...    install ttf font
       --remove <file>... remove ttf font
       --list             list fonts on the X fontpath
       --setdefault <file>
       --setdefault_ming <file>
                          set default ming font to file
       --setdefault_kai <file>
                          set default kai font to file
       --help             show this info

