wine下的字体乱码问题
2017-08-07 09:22
162 查看
http://vdisk.weibo.com/s/azBlgtDtCb6L8
@1下载simsun字体
1、准备字体
为了让 Windows 应用程序看上去更美观,所以需要 Windows 下面的字体。
到windows系统下C:\Windows\Fonts目录拷贝 simsun.ttc 文件。复制到~/.wine/drive_c/windows/Fonts目录。
创建一个 simfang.ttc 是许多 Windows 应用默认使用 simfang.ttc 字体。
2、修改 ~/.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"
3、修改 ~/.wine/drive_c/windows/win.ini
gedit ~/.wine/drive_c/windows/win.ini
在文件末尾加入:
[Desktop]
menufontsize=13
messagefontsize=13
statusfontsize=13
IconTitleSize=13
4、最关键的一步,把下面的代码保存为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"
叁考文章 http://www.wuwenhui.cn/2692.html
@1下载simsun字体
1、准备字体
为了让 Windows 应用程序看上去更美观,所以需要 Windows 下面的字体。
到windows系统下C:\Windows\Fonts目录拷贝 simsun.ttc 文件。复制到~/.wine/drive_c/windows/Fonts目录。
创建一个 simfang.ttc 是许多 Windows 应用默认使用 simfang.ttc 字体。
2、修改 ~/.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"
3、修改 ~/.wine/drive_c/windows/win.ini
gedit ~/.wine/drive_c/windows/win.ini
在文件末尾加入:
[Desktop]
menufontsize=13
messagefontsize=13
statusfontsize=13
IconTitleSize=13
4、最关键的一步,把下面的代码保存为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"
叁考文章 http://www.wuwenhui.cn/2692.html
相关文章推荐
- ubuntu11.04安装NetBeans 7.0中文显示乱码或者方框问题的解决(JRE中文字体设置)
- Wine乱码问题解决方案
- Netbeans8.1设置Consola字体并解决中文乱码问题
- Ubuntu 10.04下Wine乱码问题(unsolved)
- 解决wine安装程序的乱码问题
- ubuntu下wine安装软件时乱码问题解决
- Netbeans中文字体乱码问题解决方法
- Ubuntu/Debian下JAVA 中文/图片中文字体乱码显示问题解决方法
- 树莓派 Learning 002 装机后的必要操作 11 解决在使用SecureCRT软件链接树莓派时,SecureCRT软件的终端中显示树莓派的中文字体乱码的问题
- Qt 中文字体乱码问题解决
- Linux下解决Java程序中文字体乱码问题
- Linux下Java中文字体不显示(解决图像中文乱码问题)
- linux下字体乱码问题的解决
- Fedora Core 5.0 中添加字体及应用程序字体设置方法及解决JVM乱码问题
- mac系统下为emacs设置中文字体,解决乱码问题
- Linux下Wine中文对话框字体乱码解决方法
- Fedora下PDF阅读(顺带解决wine windows程序时按钮字体乱码问题)
- FCKEditor fckconfig.js配置,添加字体和大小 附:中文字体乱码问题解决
- pycharm控制台项目文件名中文字体乱码显示口口口问题解决