有个可执行文件只有windows平台的,要在其它操作系统中执行,非得借助神奇强大的wine
工具不可,默认已安装好wine。
系统环境
$ uname -r
5.11.22-100.fc32.x86_64
$ wine your-windows-file.exe
注意: your-windows-file
只是安装文件,安装完成后不能再执行这个文件了,如果安装目录为/mnt/home/wesley/WorkPlace/projects/WXWork
,下次打开执行wine /mnt/home/wesley/WorkPlace/projects/WXWork/your-windows-program.exe
字体显示不全
不是字体不能显示,是只能显示一部分,会出现“口”:
按这篇贴子操作, 结果竟然不好使!
又看了这篇帖子。
1. 下载windows系统字体
用这个下载链接去下载字体。解压到~/.wine/drive_c/windows/Fonts
,目录下直接放置字体文件,不要再有目录。
2. 修改注册表 ~/.wine/system.reg
"LogPixels"=dword:00000060
改为:
"LogPixels"=dword:00000070
字体变为雅黑:
"MS Shell Dlg"="Tahoma"
"MS Shell Dlg 2″="Tahoma"
改为:
"MS Shell Dlg"="SimHei"
"MS Shell Dlg 2″="SimHei"
3. 修改 ~/.wine/drive_c/windows/win.ini
在文件末尾加入:
[Desktop]
menufontsize=13
messagefontsize=13
statusfontsize=13
IconTitleSize=13
4. 终端执行注册表
字体全都变成雅黑
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"Arial"="simhei"
"Arial CE,238"="simhei"
"Arial CYR,204"="simhei"
"Arial Greek,161"="simhei"
"Arial TUR,162"="simhei"
"Courier New"="simhei"
"Courier New CE,238"="simhei"
"Courier New CYR,204"="simhei"
"Courier New Greek,161"="simhei"
"Courier New TUR,162"="simhei"
"FixedSys"="simhei"
"Helv"="simhei"
"Helvetica"="simhei"
"MS Sans Serif"="simhei"
"MS Shell Dlg"="simhei"
"MS Shell Dlg 2"="simhei"
"System"="simhei"
"Tahoma"="simhei"
"Times"="simhei"
"Times New Roman CE,238"="simhei"
"Times New Roman CYR,204"="simhei"
"Times New Roman Greek,161"="simhei"
"Times New Roman TUR,162"="simhei"
"Tms Rmn"="simhei"