1. 初始讄
q行 winecfgQ把模拟?Windows pȝ讄?Windows XP 或?Windows 2000?/p>
2. 准备字体
Z?Windows 应用E序看上L观Q所以需?Windows 下面的字体?/p>
׃我已l将 simsun.ttc 复制?/usr/share/fonts/windows/ 目录中了。所以我只需要在 ~/.wine/drive_c/windows/fonts/ 目录中ؓ simsun.ttc 创徏一个符可接:
cd ~/.wine/drive_c/windows/fonts
ln -s /usr/share/fonts/windows/simsun.ttc simsun.ttc
ln -s /usr/share/fonts/windows/simsun.ttc simfang.ttc
创徏一?simfang.ttc 是许?Windows 应用默认使用 simfang.ttc 字体?br /> 3. 修改 ~/.wine/system.reg
装好字体后,q要修改一?Wine 的注册表讄Q指定与字体相关的设|:
gedit ~/.wine/system.reg
Q一定要使用 gedit 或其他支?gb2312/utf8 ~码的编辑器修改q些文gQ否则文件中的中文可能变qQ?/p>
搜烦Q?LogPixels
扑ֈ的行应该是:[System\\CurrentControlSet\\Hardware Profiles\\Current\\Software\\Fonts]
其中的Q?br />
"LogPixels"=dword:00000060
改ؓQ?br /> "LogPixels"=dword:00000070
搜烦Q?FontSubstitutes
扑ֈ的行应该是:[Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes]
其中的Q?br />
"MS Shell Dlg"="Tahoma"
"MS Shell Dlg 2″="Tahoma"
改ؓQ?br />
"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. 最关键的一步,|上很多文章中没有提到的一?/font>──把下面的代码保存为zh.regQ然后终端执行regedit zh.reg。从Windows目录下的Fonts里的simsun.ttc复制?home/user/.wine/drive_c/windows/fonts里面?br />
代码:
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"
之后Q中文正常显C哈哈!