2009年11月18日 星期三

Ubuntu 下的Wine中文字型設定

在Ubuntu裡面的Wine常常看到□□的中文字?

那就來學著如果讓中文字能正常顯示吧。

參考來源:

"開始設定中文字型吧!Ubuntu 8.04 內預設安裝上海新宋字體,為了節省硬碟空間,可以使用軟連結,將字型指定到 Wine fonts 目錄內。 ln -s /usr/share/fonts/truetype/arphic/uming.ttc ~/.wine/drive_c/windows/Fonts/uming.ttc接著我們需修改下述3個檔案,指定字型使用 uming user.reg system.reg win.ini 1. 修改user.reg gedit ~/.wine/user.reg 在文件最底下加入以下內容:[Software\\Wine\\X11 Driver]"ClientSideAntiAliasWithRender"="N"[Software\\Wine\\Fonts\\Replacements]"System"="AR PL UMing CN""Arial"="AR PL UMing CN""Fixedsys"="AR PL UMing CN""Microsoft Sans Serif"="AR PL UMing CN""MS UI Gothic"="AR PL UMing CN""Tahoma"="AR PL UMing CN""Terminal"="AR PL UMing CN""MingLiU"="AR PL UMing CN""PMingLiU"="AR PL UMing CN" 2. 修改system.reg gedit ~/.wine/system.reg 在文件最底下加入:[Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes] "Arial"="Arial" "Arial CE,238"="AR PL UMing CN" "Arial CYR,204"="AR PL UMing CN" "Arial Greek,161"="AR PL UMing CN" "Arial TUR,162"="AR PL UMing CN" "Courier New"="Courier New" "Courier New CE,238"="AR PL UMing CN" "Courier New CYR,204"="AR PL UMing CN" "Courier New Greek,161"="AR PL UMing CN" "Courier New TUR,162"="AR PL UMing CN" "FixedSys"="AR PL UMing CN" "Helv"="AR PL UMing CN" "Helvetica"="AR PL UMing CN" "MingLiU"="AR PL UMing CN" "MS Sans Serif"="AR PL UMing CN" "MS Shell Dlg"="AR PL UMing CN" "MS Shell Dlg 2"="AR PL UMing CN" "System"="AR PL UMing CN" "Tahoma"="AR PL UMing CN" "Times"="Times" "Times New Roman"="Times New Roman" "Times New Roman CE,238"="AR PL UMing CN" "Times New Roman CYR,204"="AR PL UMing CN" "Times New Roman Greek,161"="AR PL UMing CN" "Times New Roman TUR,162"="AR PL UMing CN" "Tms Rmn"="AR PL UMing CN" [System\\CurrentControlSet\\Hardware Profiles\\Current\\Software\\Fonts] "LogPixels"=dword:00000060 3. 修改win.ini 這裡修改 dialog window buttom 字體大小 gedit ~/.wine/drive_c/windows/win.ini 在文件最底下加入: [Desktop] menufontsize=12 messagefontsize=12 statusfontsize=12 IconTitleSize=12修改完,重新開啟 Wine 執行的軟體,中文可正常顯示了。Wine 又邁向無敵的一步啦!"
- 宅男不出門,能知天下事: Wine 字型設定 (在「Google 網頁註解」中檢視)