標籤:sys man utf8 mfa shell 中文 desktop ica reg
原文連結:http://forum.ubuntu.org.cn/viewtopic.php?t=290155
wine下中文的配置方案
步驟:
1. 初始設定
運行 winecfg,把類比的 Windows 系統設定為 Windows XP 或者 Windows 2000。
2. 準備字型
為了讓 Windows 應用程式看上去更美觀,所以需要 Windows 下面的字型。
由於我已經將 simsun.ttc 複製到 /usr/share/fonts/windows/ 目錄中了。所以我只需要在
~/.wine/drive_c/windows/Fonts/ 目錄中為 simsun.ttc 建立一個符號串連:
cd ~/.wine/drive_c/windows/Fonts(如果不是Fonts那可能是fonts)
ln -s /usr/share/fonts/windows/simsun.ttc simsun.ttc
ln -s /usr/share/fonts/windows/simsun.ttc simfang.ttc
建立一個 simfang.ttc 是許多 Windows 應用預設使用 simfang.ttc 字型。
3. 修改 ~/.wine/system.reg
裝好字型後,還要修改一下 Wine 的註冊表設定,指定與字型相關的設定:
gedit ~/.wine/system.reg
(一定要使用 gedit 或其他支援 gb2312/utf8 編碼的編輯器修改這些檔案,否則檔案中的中文
可能變亂碼)
搜尋: LogPixels
找到的行應該是:[System\\CurrentControlSet\\Hardware Profiles\\Current\\Software\\Fonts]
將其中的:
"LogPixels"=dword:00000060
改為:
"LogPixels"=dword:00000070
搜尋: FontSubstitutes
找到的行應該是:[Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes]
將其中的:
"MS Shell Dlg"="Tahoma"
"MS Shell Dlg 2″="Tahoma"
改為:
"MS Shell Dlg"="SimSun"
"MS Shell Dlg 2″="SimSun"
4. 修改 ~/.wine/drive_c/windows/win.ini
gedit ~/.wine/drive_c/windows/win.ini
在檔案末尾加入:
[Desktop]
menufontsize=13
messagefontsize=13
statusfontsize=13
IconTitleSize=13
5. 最關鍵的一步,網上很多文章中沒有提到的一步──把下面的代碼儲存為zh.reg,然後終
端執行regedit zh.reg。
代碼:
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"Arial"="simsun"
"Arial CE,238"="simsun"
"Arial CYR,204"="simsun"
"Arial Greek,161"="simsun"
"Arial TUR,162"="simsun"
"Courier New"="simsun"
"Courier New CE,238"="simsun"
"Courier New CYR,204"="simsun"
"Courier New Greek,161"="simsun"
"Courier New TUR,162"="simsun"
"FixedSys"="simsun"
"Helv"="simsun"
"Helvetica"="simsun"
"MS Sans Serif"="simsun"
"MS Shell Dlg"="simsun"
"MS Shell Dlg 2"="simsun"
"System"="simsun"
"Tahoma"="simsun"
"Times"="simsun"
"Times New Roman CE,238"="simsun"
"Times New Roman CYR,204"="simsun"
"Times New Roman Greek,161"="simsun"
"Times New Roman TUR,162"="simsun"
"Tms Rmn"="simsun"
好了好了,之後 你會發現中文是多麼的美麗。。。
這個連kugoo的亂碼也解決了
轉載-linux-wine下中文的配置方案