手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

解决Wine和IEs4Linux的乱码问题

[日期:2012-10-07] 来源:Linux公社  作者:Linux [字体:大 中 小]

1. 初始设置

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

2. 准备字体

为了让 Windows 应用程序看上去更美观,所以需要 Windows 下面的字体。

先把windows/fonts目录里的simsun.ttc字体文件复制到Wine目录下的fonts文件夹里(如~/.wine/drive_c/windows/Fonts)。

3、新建一个fonts.reg文件,在终端执行:  regedit fonts.reg

fonts.reg 代码内容如下:

[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"

4. 修改 ~/.wine/drive_c/windows/win.ini
在终端执行:gedit ~/.wine/drive_c/windows/win.ini
在文件末尾加入:
[Desktop]
menufontsize=13
messagefontsize=13
statusfontsize=13
IconTitleSize=13

5、 修改Wine和IEs4Linux的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"
 
另外,ies4linux乱码的解决方法,复制simsun.ttc字体文件到ies4linux目录下的fonts文件夹里(如~/.ies4linux/ie6/drive_c/windows/Fonts)
终端执行:gedit ~/.ies4linux/ie6/system.reg
搜索: LogPixels
找到的行应该是:[System\\CurrentControlSet\\Hardware Profiles\\Current\\Software\\Fonts]
将其中的:
“LogPixels”=dword00000060
改为:
“LogPixels”=dword00000070

搜索: FontSubstitutes
找到的行应该是:[Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes] 1233217233
将其中的:
“MS Shell Dlg”=”Tahoma”
“MS Shell Dlg 2″=”Tahoma”

改为:
“MS Shell Dlg”=”SimSun”
“MS Shell Dlg 2″=”SimSun”

linux
相关资讯       wine  ies4linux  Wine乱码 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款