9

I have installed Wine on Ubuntu 14.04 LTS. When I run any program containing Chinese fonts, it shows some box type structure.

Tried: update, installing Chinese fonts in Ubuntu, adding Chinese language under system settings. None of them worked.

5 Answers5

9

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

After saving 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 the .wine folder, enter any folder and push keyboard Ctrl+H (show/hide the hidden folder)

And the 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 the option to 'Run regedit'. You will see the windows registry editor screen.
  5. Click on bar 'Registry > Import Registry File'
  6. Select downloaded registry file and import.
  7. Finish!

I hope it helps you. I also use some software that has Chinese font. Wine doesn't support some distro maybe.

1

It is a problem with the locales in Wine rather than a font issue. I had the same problem with most popular Bulgarian dictionary for Windows (SA Dictionary). You should set correct value of the LANG variable after WINEPREFIX within the Exec= directive in the .desctop file that run your application. In my case this is LANG=bg_BG.UTF-8. Here is example how my .desctop looks like to work correctly:

user@host:~/Desktop$ cat Diction.desktop 

[Desktop Entry]
Name=Diction
Exec=env WINEPREFIX="/home/spas/.wine" LANG=bg_BG.UTF-8 wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/spas/.wine/dosdevices/c:/users/Public/Desktop/Diction.lnk
Type=Application
StartupNotify=true
Path=/home/spas/.wine/dosdevices/c:/Program Files (x86)/SADiction
Icon=D7E1_Diction.0
StartupWMClass=diction.exe

Type locale to to find the current values of the locales in the terminal.

pa4080
  • 30,621
0

I don't have wine env, but gut- feeling tells that you could try to install Chinese fonts in wine

/usr/share/wine/fonts

where the fonts is loaded from

j3ffyang
  • 206
0

If you have a windows 10 iso image you can extract sources/install.wim from it and from this wim file you can extract all the true type fonts using wimextract tool

wimextract install.wim 1 /Windows/{Fonts/"*".{ttf,ttc},System32/Licenses/neutral/"*"/"*"/license.rtf} --dest-dir fonts

Now you can use wine explorer to copy/paste all the fonts into windows/Font directory.

vdegenne
  • 225
0

For those where nothing works. Try this:

winetricks allfonts

This will install a collection of fonts, including some CJK fonts, into your Wine environment. (you obviously need winetricks installed)