2019-09-02更新:
建議使用:https://github.com/wszqkzqk/deepin-wine-ubuntu
兼容性更好,更適合日常使用
以下內容不再推薦使用!
原文鏈接: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的亂碼也解決了
看圖
wine 顯示中文字體:http://linux-wiki.cn/wiki/zh-hans/Wine%E7%9A%84%E4%B8%AD%E6%96%87%E6%98%BE%E7%A4%BA%E4%B8%8E%E5%AD%97%E4%BD%93%E8%AE%BE%E7%BD%AE
字體鏈接
Windows支持字體鏈接:[1]當一種字體中不存在某個字時,可以嘗試從另一個字體文件中尋找相應的字形。所以只要把當前系統中的中文字體設為"fallback"字體,漢字通常就能正確顯示了。方法也很簡單,只需創建一個文本文件,如chn_font.reg如下[2]:
REGEDIT4 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink] "Lucida Sans Unicode"="wqy-microhei.ttc" "Microsoft Sans Serif"="wqy-microhei.ttc" "MS Sans Serif"="wqy-microhei.ttc" "Tahoma"="wqy-microhei.ttc" "Tahoma Bold"="wqy-microhei.ttc" "SimSun"="wqy-microhei.ttc" "Arial"="wqy-microhei.ttc" "Arial Black"="wqy-microhei.ttc"注意請將wqy-microhei.ttc替換為你系統中的字體文件名,如文泉驛正黑是wqy-zenhei.ttc(請在/usr/share/fonts及其子文件夾中尋找相應字體文件)。
最后,打開注冊表wine regedit,導入上面的注冊表文件即可。中文應該都能完美顯示了(包括Picasa中文顯示為方框、軟件安裝程序漢字無法顯示等問題均可被解決)。
