CODE: make a dir called font, copy the font here. mkdir ~/font cd ~/font cp /media/sda/windows/Fonts/simhei.ttf . copy all the file needed. sudo apt-get install fontforge cp /media/textlive/texmf-dist/source/latex/cjk/utils/subfonts/* ~/font/ cp /media/textlive/texmf/fonts/sfd/*.sfd ~/font/ 注意上面路徑適合我的電腦,你可以進入texlive目錄find一下確定具體的合適路徑。 ---If you are sure your computer is fast enough, please read Stage 2 first!! Then, make the font. It is a good way to test how fast your computer is:) it takes me 3 minutes to generate the fonts[Core Duo 2]. time fontforge -script subfonts.pe simhei.ttf hei Unicode.sfd create a file name makemap like this: [ for i in *.tfm do cat >> hei.map << EOF ${i%.tfm} ${i%.tfm} < ${i%.tfm}.pfb EOF done ] Make map file: chmod +x makemap ./makemap create a file name c70hei.fd for CJK package: [ % This is c70hei.fd for CJK package. % created by Edward G.J. Lee % modify by Yue Wang \ProvidesFile{c70hei.fd} \DeclareFontFamily{C70}{hei}{\hyphenchar \font\m@ne} \DeclareFontShape{C70}{hei}{m}{n}{<-> CJK * hei}{} \DeclareFontShape{C70}{hei}{bx}{n}{<-> CJKb * hei}{\CJKbold} \endinput ] create the local directory to save the font cd ~/.texlive2007 cd texmf-var mkdir -p fonts/map/dvips/CJK mkdir -p fonts/tfm/CJK/hei mkdir -p fonts/type1/CJK/hei mkdir -p tex/latex/CJK/UTF8 cp ~/font/hei.map fonts/map/dvips/CJK/ cp ~/font/*.tfm fonts/tfm/CJK/hei cp ~/font/*.pfb fonts/type1/CJK/hei cp ~/font/c70hei.fd tex/latex/CJK/UTF8 Update the system: texhash updmap --enable Map hei.map |
[火星人 ] ubuntu8.04下texlive2008安裝及中文環境配置已經有405次圍觀