Debian10.1 Open Windows tool garbled summary with wine

Because somehow hung up before deepin15.11 (Zuosha is the use of special operations generally not hung up, but it may be my mobile SSDs also have pot), so this time decided to install Debian10.1 version,

Since the selection locale installation directory is some basic Chinese words are creating a convenient terminal on the Chinese search and cd, so choose the time of installation is English;

Then after installing himself installed wine, engage in back and forth for a long time finally get the Chinese garbled, where the record about the steps of:

1.locale -a see if there zh_CN.UTF-8 character set, without firstsudo locale-gen zh_CN.UTF-8,然后sudo dpkg-reconfigure locales,它会要求你选择字符集,选择zh_CN.UTF-8即可安装;(最好重启下,我是重启过了);

2. Modify / etc / default / locale where LANG = zh_CN.UTF-8 and LANGUAGE = "zh_CN: zh";

3. system settings in the locale and the like are set to Chinese restart; after starting with a look locale is in effect (mainly to see whether LANG and LANGUAGE become zh_UTF-8);

4. The windows in the C: \ Windows \ Fonts directory simsun.ttc copy files. Copied to ~ / .wine / drive_c / windows / Fonts directory (winecfg first time, or run a program with wine program once)

The following references (do not need to feel all the steps Dounong, I've done here is not good these steps to return back; if you have done the above steps can not do the following steps to try to restart the wine program is already it, then the following steps can no longer)

https://www.cnblogs.com/inory/p/5468669.html

2, modify ~ / .wine / system.reg

After the installed fonts, but also to modify Wine registry settings associated with the specified font settings:

gedit ~/.wine/system.reg

(Be sure to use gedit (kde with kate) or other support gb2312 / utf8 encoded editor to modify these files, otherwise the file may become garbled in Chinese)

Search: LogPixels

Find the line should be: [System \\ CurrentControlSet \\ Hardware Profiles \\ Current \\ Software \\ Fonts]

Will be one of:

"LogPixels"=dword:00000060

Read:

"LogPixels"=dword:00000070

Search: FontSubstitutes

Find the line should be: [Software \\ Microsoft \\ Windows NT \\ CurrentVersion \\ FontSubstitutes]

Will be one of:

"MS Shell Dlg"="Tahoma"

"MS Shell Dlg 2″="Tahoma"

Read:

"MS Shell Dlg"="SimSun"

"MS Shell Dlg 2″="SimSun"

3, modify ~ / .wine / drive_c / windows / win.ini

gedit ~/.wine/drive_c/windows/win.ini

In the end of the file is added:

[Desktop]

menufontsize = 13

messagefontsize=13

statusfontsize=13

IconTitleSize=13

4, the most crucial step to save the following code as zh.reg, then the terminal performs wine regedit zh.reg.

Code:

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"

好了,之后你会发现中文是多么的美丽。。。

Guess you like

Origin www.cnblogs.com/silentdoer/p/11752537.html