Skip to content

Instantly share code, notes, and snippets.

@koolay
Last active January 10, 2020 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koolay/bd4fc85da13d7047c262eafc7b4640ce to your computer and use it in GitHub Desktop.
Save koolay/bd4fc85da13d7047c262eafc7b4640ce to your computer and use it in GitHub Desktop.
解决ubuntu下企业微信乱码问题

解决乱码+修改字体(微软雅黑)

下载微软雅黑字体, msyh.ttc

1.添加字体 cp msyh.ttc ~/.deepinwine/Deepin-WXWork/drive_c/windows/Fonts/

2.修改系统注册表

gedit ~/.deepinwine/Deepin-WXWork/system.reg

修改以下两行

"MS Shell Dlg"="msyh" "MS Shell Dlg 2"="msyh"

3.字体注册

vim msyh_config.reg

内容添加

REGEDIT4
[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"
#注册
WINEPREFIX=~/.deepinwine/Deepin-WeChat deepin-wine regedit msyh_config.reg
  1. reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment