前提:
安装 Deepin-Wine 以及 Deepin-WeChat :Ubuntu18.04 上 安装 Deepin 原版微信 Deepin-Wechat
安装好 Deepin 版微信后登录微信发现其显示的中文字体为竖立的方块,根本无法看,于是在网上找到这个解决方案,这个方案的每个步骤缺一不可:
- 下载“微软雅黑”字体
到 https://github.com/owent-utils/font/blob/master/%E5%BE%AE%E8%BD%AF%E9%9B%85%E9%BB%91/MSYH.TTC 下载字体,然后解压,得到字体文件 msyh.ttc 。
-
將字体复制到指定的位置:
cp /path/to/MSYH.TTC ~/.deepinwine/Deepin-WeChat/drive_c/windows/Fonts/msyh.ttc
- 將字体注册到 Wine:
vim ~/.deepinwine/Deepin-WeChat/font.reg
键入以下内容,并保存:
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"
- 注册 font.reg:
在终端执行:
WINEPREFIX=~/.deepinwine/Deepin-WeChat/ deepin-wine regedit ~/.deepinwine/Deepin-WeChat/font.reg
- 重新运行微信。
感谢:
https://blog.csdn.net/hymanjack/article/details/100168300
https://github.com/wszqkzqk/deepin-wine-ubuntu/issues/136
Created On: 2021-05-30
相关文章:
- Ubuntu 18.04 上安装微信(Deepin-Wechat)
- Ubuntu 20.04 安装微信(Deepin-Wechat)
- [Wine] Ubuntu 20.04 安装酷狗音乐
- 解决 Deepin 微信无法发送图片问题
- 解决 Ubuntu 20.04 微信中文乱码问题( Deepin-Wechat)
鉴于本人的相关知识储备以及能力有限,本博客的观点和描述如有错漏或是有考虑不周到的地方还请多多包涵,欢迎互相探讨,一起学习,共同进步。
本文章可以转载,但是需要说明来源出处!
本文使用的部分图片来源于网上,若是侵权,请与本文作者联系删除: admin@chengxuzhilu.com