1. 程式人生 > >Wine中中文顯示為錯誤的解決方案

Wine中中文顯示為錯誤的解決方案

First u must download wqy-microhei.ttc font online (https://github.com/anthonyfok/fonts-wqy-microhei/blob/master/wqy-microhei.ttc)

After save this Regedit file on pc (https://gist.github.com/swordfeng/c3fd6b6fcf6dc7d7fa8a)

Font file copy to wine folder under C: drive folder, under Windows folder, under Font (/home/YOURUSERNAME/.wine/drive_c/windows/Fonts)

If you cant see .wine folder, enter anyfolder and push keyboard Ctrl+H (show/hide hidden folder)

And last one you have downloaded regedit file. Steps: 1) Download winetricks (sudo apt-get install winetricks) 2) Open wine tricks app 3) First screen select 'Select the default wineprefix' and click OK (go to next) 4) Select option to 'Run regedit'. You will see windows registry editor screen. 5) Click on bar 'Registry > Import Registry File' 6)Select downloaded registry file and import. 7)Finish!

I hope it help you. I also use some software have chinese font. Wine don't support some distro maybe.

簡單來說,缺少一份可以正確顯示中文的字型,放一個字型在wine的drive_c/windows/Fonts中,並在登錄檔中把字型檔案附上即可。粗略翻譯:

首先你需要下載 wqy-microhei.ttc字型 (https://github.com/anthonyfok/fonts-wqy-microhei/blob/master/wqy-microhei.ttc)

之後下載一份登錄檔檔案在pc上 (

https://gist.github.com/swordfeng/c3fd6b6fcf6dc7d7fa8a) (譯註:或者也可以儲存一份文字檔案,複製黏貼上面的內容,並以reg作為字尾即可)

如果你不能看到.wine資料夾,進入任意一個資料夾並且按下 Ctrl + H(顯示或者隱藏資料夾)順便一提,在macOS上是command + shift + .

最後下載好了登錄檔檔案,步驟1:下載winetricks (sudo apt-get install winetricks) 2.開啟winetrick 3.第一個視窗選擇“Select the default wineprefix”然後點選OK (go to next) 4.選擇選項“Run regedit”,你會看到Windows登錄檔編輯器視窗, 5.點選選單欄“Registry > Import Registry File” 6.選擇之前下載好的登錄檔檔案並匯入 7.結束!

如果沒有其他的wineprefix,可以直接wine regedit開啟登錄檔編輯器,然後按照上面第五步匯入即可。

出處:Chinese fonts are not visible in programs installed in Wine中的Cengiz ALCAN的回答