Today when I using Wine tool to open a Jin-Yong game, I found all of Chinese word in the game are garbled. After searching on Internet, I found that this is a very common minor problem. Here is a brief note on how I can troubleshoot the problem.
Method 1: Copy font file to the Wine font file
This method does not work in my situation, but I heard that it can work in other cases.
The Linux system has a special folder for fonts, we use commands to put Chinese font files into Wine's font folder. (For example, today my font file is called CN.ttf)
sudo cp ~/.fonts/CN.ttf ~/.wine/drive_c/windows/Fonts/
After copying is complete, restart Wine:
wineboot
Then use Wine again to open the program to see if the problem has been corrected.
Method 2: Change the environment language
This method is effective for me, and it is quite simple, without any additional settings.
Use the following command to call Wine to open the program you want to run:
env LANG=zh_CN.UTF-8 wine "xxx.exe"
Among them, "xxx.exe" is the file you want to execute.
But as mentioned earlier, although this command is effective for me, it has some sequelae. The most direct thing is that my environment is set to Chinese (as far as I know, the command should not be changed to the system language That’s right), I opened Google Chrome and found that it’s all in Chinese. I’m not used to it. I always read the English version.