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
ln -s /usr/share/fonts/windows/simsun.ttc simsun.ttc

3. 修改 ~/.wine/system.reg

裝好字體後,還要修改一下 Wine 的註冊表設置,指定與字體相關的設置:

gedit ~/.wine/system.reg

 

搜索: 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

 

ok

 

運行程序 env LANG=zh_CN.UTF-8 wine xxxx

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章