Completely eliminate wine Chinese garbled

Source: Internet
Author: User

1, prepare the font

To make Windows applications look more beautiful, you need the fonts below windows.

Copy SIMSUN.TTC files to the C:\Windows\Fonts directory under Windows system. Copy to the ~/.wine/drive_c/windows/fonts directory.

Creating a SIMFANG.TTC is the default SIMFANG.TTC font used by many Windows applications.

2. Modify ~/.wine/system.reg

After you have installed your fonts, you will also need to modify the registry settings for Wine to specify the font-related settings:

Gedit ~/.wine/system.reg

(Be sure to use gedit or other editor that supports GB2312/UTF8 encoding to modify these files, otherwise the Chinese in the file may become garbled)

Search: Logpixels

The rows found should be: [System\\currentcontrolset\\hardware profiles\\current\\software\\fonts]

To include:

"Logpixels" =dword:00000060

To

"Logpixels" =dword:00000070

Search: FontSubstitutes

The rows found should be: [Software\\microsoft\\windows nt\\currentversion\\fontsubstitutes]

To include:

"MS Shell Dlg" = "Tahoma"

"MS Shell Dlg 2″=" Tahoma "

To

"MS Shell Dlg" = "SimSun"

"MS Shell Dlg 2″=" SimSun "

3. Modify ~/.wine/drive_c/windows/win.ini

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

At the end of the file, add:

[Desktop]

Menufontsize=13

Messagefontsize=13

Statusfontsize=13

Icontitlesize=13

4, the most critical step, the following code is saved as Zh.reg, and then the terminal executes 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"

Well, then you will find how beautiful Chinese is ...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.