原本我都是把 TrueType 字型裝到系統目錄裡面使用。最近 Linux 桌面環境比較熟悉了以後,開始愛往家目錄裡面裝東西;我感覺這才是正確的使用習慣,以前都被 Windows 慣壞了。

Debian 下的 teTeX 2 會尋找 ~/texmf 裡面的內容,所以只要把相關的檔案塞到該目錄內的正確位置即可。以我慣用的 cjk-latex 環境來說,TrueType 字型要放 ~/texmf/fonts/truetype 下;dvipdfmxcid-x.map 要放在 ~/texmf/dvipdfm/cid-x.mapttfont.map 則放在 ~/texmf/ttf2pk/ttfont.map

順便筆記一下,新裝字型採用 unicode 的 ttfont.map 應該加上如下的內容:

hwml@Unicode@ wt001.ttf Fontindex=0
hwmm@Unicode@ wt002.ttf Fontindex=0
hwmms@Unicode@ wt002.ttf Slant=0.167 Fontindex=0
hwmb@Unicode@ wt003.ttf Fontindex=0
hwmh@Unicode@ wt004.ttf Fontindex=0
hwmbk@Unicode@ wt005.ttf Fontindex=0
hwmbks@Unicode@ wt005.ttf Slant=0.167 Fontindex=0

cid-x.map 則如下:

hwml@Unicode@ Identity-H wt001.ttf
hwmm@Unicode@ Identity-H :0:wt002.ttf
hwmms@Unicode@ Identity-H wt002.ttf -s 0.167
hwmb@Unicode@ Identity-H wt003.ttf
hwmh@Unicode@ Identity-H wt004.ttf
hwmbk@Unicode@ Identity-H wt005.ttf
hwmbks@Unicode@ Identity-H wt005.ttf -s 0.167

這些設定組態真是比 Windows 方便太多;Debian 用得愈久,愈回不去 Windows 了。

Posted by yungyuc at 21:29, 0 comment, 0 trackback.
Navigate
Add a trackback
Add a comment

Your name. (required)

Your personal website. (optional)

Your email address. Will not show in page. (suggested, but optional)

Text format is "Plain Text".

Enter "ErHEJ"
© hover year to navigate month: powered by django