Ubuntu18.04/20.04 上微信中文显示为方块状乱码的解决方案( Deepin-Wechat )

1.下载“微软雅黑”字体

到 https://github.com/owent-utils/font/blob/master/%E5%BE%AE%E8%BD%AF%E9%9B%85%E9%BB%91/MSYH.TTC 下载字体,然后解压,得到字体文件 msyh.ttc 。
或者下载如下链接:

https://github.com/owent-utils/font/tree/master/%E5%BE%AE%E8%BD%AF%E9%9B%85%E9%BB%91

或者下载csdn链接:

https://download.csdn.net/download/weixin_38353277/35581292

2.將字体复制到指定的位置

cp /path/to/MSYH.TTC ~/.deepinwine/Deepin-WeChat/drive_c/windows/Fonts/msyh.ttc

3.將字体注册到 Wine:

vim ~/.deepinwine/Deepin-WeChat/font.reg

4. 键入以下内容,并保存:

REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"MS Shell Dlg"="msyh"
"MS Shell Dlg 2"="msyh"

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink]
"Lucida Sans Unicode"="msyh.ttc"
"Microsoft Sans Serif"="msyh.ttc"
"MS Sans Serif"="msyh.ttc"
"Tahoma"="msyh.ttc"
"Tahoma Bold"="msyhbd.ttc"
"msyh"="msyh.ttc"
"Arial"="msyh.ttc"
"Arial Black"="msyh.ttc"

5.注册 font.reg:

在终端执行:

WINEPREFIX=~/.deepinwine/Deepin-WeChat/ deepin-wine regedit ~/.deepinwine/Deepin-WeChat/font.reg

6. 重新启动微信即可

你可能感兴趣的:(ubuntu,wechat,微信,ubuntu,微信)