linux wine 中文乱码,wine中软件中文乱码出现方框问题解决方案

1. 初始设置

运行 winecfg,把模拟的 Windows 系统设置为 Windows XP 或者 Windows7。

2. 准备字体

这里我直接将windws系统下面扥字体文件夹Fonts拷贝到了linux系统wine的字体文件夹,即覆盖下面路径即可。

~/.wine/drive_c/windows/Fonts/

3. 修改 ~/.wine/system.reg

装好字体后,还要修改一下 Wine 的注册表设置,指定与字体相关的设置:

gedit ~/.wine/system.reg

(一定要使用 gedit 或其他支持 gb2312/utf8 编码的编辑器修改这些文件,否则文件中的中文

可能变乱码)

搜索: LogPixels

找到的行应该是:[System\\CurrentControlSet\\Hardware Profiles\\Current\\Software\\Fonts]

将其中的:

"LogPixels"=dword:00000060

改为:

"LogPixels"=dword:00000070

搜索: FontSubstitutes

找到的行应该是:[Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes]

将其中的:

"MS Shell Dlg"="Tahoma"

"MS Shell Dlg 2″="Tahoma"

改为:

"MS Shell Dlg"="SimSun"

"MS Shell Dlg 2″="SimSun"

4. 修改 ~/.wine/drive_c/windows/win.ini

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

在文件末尾加入:

[Desktop]

menufontsize=13

messagefontsize=13

statusfontsize=13

IconTitleSize=13

5. 把下面的代码保存为zh.reg,然后终端执行 regedit zh.reg

代码:

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"

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值