Arch linux 使用Wine打开exe程序时中文乱码

1.按照wiki的方法

新建一个reg文件(例如 zh.reg)添加如下内容:

REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink]
"Lucida Sans Unicode"="wqy-microhei.ttc"
"Microsoft Sans Serif"="wqy-microhei.ttc"
"Microsoft YaHei"="wqy-microhei.ttc"
"微软雅黑"="wqy-microhei.ttc"
"MS Sans Serif"="wqy-microhei.ttc"
"Tahoma"="wqy-microhei.ttc" 
"Tahoma Bold"="wqy-microhei.ttc"
"SimSun"="wqy-microhei.ttc"
"Arial"="wqy-microhei.ttc"
"Arial Black"="wqy-microhei.ttc"
"宋体"="wqy-microhei.ttc"
"新細明體"="wqy-microhei.ttc"

提示: 这里以文泉驿微米黑为例,如果使用其他字体,请到/usr/share/fonts目录下找到该字体的完整名称,例如使用adobe source hans 中号字体,将上面的wqy-microhei.ttc改为SourceHanSansCN-Medium.otf。

然后打开注册表编辑器:

 wine regedit

在注册表编辑器界面选择“注册表”–“导入”,导入该wine-fonts.reg文件即可。 或者直接运行:

 $regedit zh.reg

2.将windows字体拷贝过来

wget https://tools.southcat.net/d/home/Fonts.zip
unzip Fonts.zip
mkdir /usr/share/fonts/WindowsFonts
cp Fonts/* /usr/share/fonts/WindowsFonts
chmod 644 /usr/share/fonts/WindowsFonts/*
fc-cache -f

字体文件我已经上传到我的网盘了,直接复制上面命令下载即可,并且你可以选择使用axel等多线程下载工具进行下载。

给TA打赏
共{{data.count}}人
人已打赏
折腾日记

腾讯云Serverless动态建站初体验

2021-4-26 9:14:39

折腾日记

Archlinux kde桌面安装/卸载程序 启动器不更新

2021-7-30 17:10:55

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索