Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

ubuntu18.04下 中文字体显示为方块 方框 #136

Open
leichangqing opened this issue Jul 18, 2019 · 75 comments
Open

ubuntu18.04下 中文字体显示为方块 方框 #136

leichangqing opened this issue Jul 18, 2019 · 75 comments

Comments

@leichangqing
Copy link

在ubuntu18.04下,照说明安装的,中文字体显示是方块,方框。

@zoukang1993
Copy link

Me too

@aur3l14no
Copy link

同样

@LeoJhonSong
Copy link

我七月初安的tim, 本来是一切正常的, 这几天突然界面文字变成方块了, 但对话界面里的文字仍然是正常的

@leichangqing
Copy link
Author

完美 解决了,
要用Deepin-WeChat这个容器中配置字体。
WINEPREFIX=~/.deepinwine/Deepin-WeChat deepin-wine regedit

找到HKEY_LOCAL_MACHINE/Software/Microsoft/Windows NT/CurrentVersion/FontSubstitutes
将MS Shell Dlg 和 MS Shell Dlg2 的值数据改为“文鼎PL细上海宋Uni”,确定保存。
重新运行wine,OK!

其它网上链接都类似的改字体方案。

@maxwell-hub
Copy link

系统语言非中文时,中文全显示成方块,需要在

/opt/deepinwine/tools/run.sh

中将 WINE_CMD 那一行修改为

WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine"

@LeoJhonSong
Copy link

系统语言非中文时,中文全显示成方块,需要在

/opt/deepinwine/tools/run.sh

中将 WINE_CMD 那一行修改为

WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine"

按这个方法解决了! 但我之前都没有改过这个地方, 不知道是因为Ubuntu更新的包引起的问题还是什么.

@TSwiftie
Copy link

TSwiftie commented Jul 20, 2019

系统语言非中文时,中文全显示成方块,需要在

/opt/deepinwine/tools/run.sh

中将 WINE_CMD 那一行修改为

WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine"

我改了之后在群消息那个界面字体发虚怎么搞?

@imsjz
Copy link

imsjz commented Jul 23, 2019

系统语言非中文时,中文全显示成方块,需要在

/opt/deepinwine/tools/run.sh

中将 WINE_CMD 那一行修改为

WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine"

感谢,成功了

@ouening
Copy link

ouening commented Jul 23, 2019

解决了问题,可是微信的中文字体变得好丑,有什么办法修改字体吗?

@zegangYang
Copy link

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

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

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

#2.修改系统注册表
gedit ~/.deepinwine/Deepin-WeChat/system.reg
#修改以下两行
"MS Shell Dlg"="msyh"
"MS Shell Dlg 2"="msyh"

#3.字体注册
gedit 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

#4.reboot

@xcrossed
Copy link

输入的文字还是乱码。

@always-web
Copy link

输入中文乱码有办法解决吗

@permgenspace
Copy link

按照配置,界面显示中文了,但是输入框显示的输入的文字还是竖条

@Yixiao-Zhang
Copy link

@zegangYang 请问能具体解释一下注册的这一步怎么操作吗? 是指把这个添加到 bash 的环境变量中吗? (我现在在使用 bash)

另外, 最后一步的 reboot 是指重启 wine 吗?

@zegangYang
Copy link

@xiao-tiger 注册这一步属于win里的参数配置,不需要添加到linux的环境变量;
只需要在终端执行这一行(复制->执行):
WINEPREFIX=~/.deepinwine/Deepin-WeChat deepin-wine regedit msyh_config.reg

@zegangYang
Copy link

@hwdd1992 @permgenspace 两台Ubuntu电脑,暂时没有发现输入法问题,
软件环境:
1)ubuntu19.04+最新搜狗输入法(出现了乱码+配置)
2)ubuntu18.10+最新搜狗输入法(暂时没有出现乱码+默认安装配置)

参考一下6楼的方案(没有验证)

@suning2012
Copy link

@permgenspace 我的输入框显示的输入中文内容也是竖条

@permgenspace
Copy link

@hwdd1992 @permgenspace 两台Ubuntu电脑,暂时没有发现输入法问题,
软件环境:
1)ubuntu19.04+最新搜狗输入法(出现了乱码+配置)
2)ubuntu18.10+最新搜狗输入法(暂时没有出现乱码+默认安装配置)

参考一下6楼的方案(没有验证)

按照楼上#136 (comment) 已修复

@suning2012
Copy link

微信发送图片不成功

@suning2012
Copy link

@xiao-tiger 注册这一步属于win里的参数配置,不需要添加到linux的环境变量;
只需要在终端执行这一行(复制->执行):
WINEPREFIX=~/.deepinwine/Deepin-WeChat deepin-wine regedit msyh_config.reg
命令结果如下,但是输入框输入的中文可以正常显示了
wine: cannot find L"C:\windows\system32\winemenubuilder.exe"
wine version: 2.18

@jemyzhang
Copy link

其实很简单,复制windows的字体(c:\windows\fonts\sim*, ms*)到~/.deepinwine/Deepin-WeChat/drive_c/windows/Fonts,然后退出微信,在进入就好了,不需要其他设置

@724399396
Copy link

@zegangYang 微信按照提供的方法已经能正常使用了,但是QQ不行。能提供一下QQ的解决办法吗。

@tobbytan
Copy link

其实很简单,复制windows的字体(c:\windows\fonts\sim*, ms*)到~/.deepinwine/Deepin-WeChat/drive_c/windows/Fonts,然后退出微信,在进入就好了,不需要其他设置

这样改了过后倒是没这个问题了,但是微信的字体变丑了

@james-xiao
Copy link

系统语言非中文时,中文全显示成方块,需要在

/opt/deepinwine/tools/run.sh

中将 WINE_CMD 那一行修改为

WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine"

成功了,感谢老铁

@AlanHootman
Copy link

系统语言非中文时,中文全显示成方块,需要在

/opt/deepinwine/tools/run.sh

中将 WINE_CMD 那一行修改为

WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-win

系统语言非中文时,中文全显示成方块,需要在

/opt/deepinwine/tools/run.sh

中将 WINE_CMD 那一行修改为

WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine"

牛逼,终于解决了

@JigaoLuo
Copy link

JigaoLuo commented Sep 6, 2019

#136 (comment)
#136 (comment)

做了这两个以后 我收到了一个:#179
有人会解决吗
谢谢!

@q3593216
Copy link

输入的文字还是乱码。

输入的文字是乱码,可以通过设置字体为WenQuan Micro Hei Bold就可以了

系统语言非中文时,中文全显示成方块,需要在
/opt/deepinwine/tools/run.sh
中将 WINE_CMD 那一行修改为
WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-win

系统语言非中文时,中文全显示成方块,需要在
/opt/deepinwine/tools/run.sh
中将 WINE_CMD 那一行修改为
WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine"

牛逼,终于解决了

系统语言非中文时,中文全显示成方块,需要在

/opt/deepinwine/tools/run.sh

中将 WINE_CMD 那一行修改为

WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine"

通过设置字体为WenquanYi Micro Hei 可以解决输入字体乱码

@mrguozp
Copy link

mrguozp commented Sep 25, 2019

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

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

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

#2.修改系统注册表
gedit ~/.deepinwine/Deepin-WeChat/system.reg
#修改以下两行
"MS Shell Dlg"="msyh"
"MS Shell Dlg 2"="msyh"

#3.字体注册
gedit 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

#4.reboot

我的还是有问题,执行最后一句的时候,提示wine: cannot find L"C:\windows\system32\winemenubuilder.exe",好慌。而且我的这个很奇怪,重启完电脑,刚打开是没问题的,但是过一会打字就变成了竖黑条

@huanhexiao
Copy link

感謝二位大佬 @zegangYang @jemyzhang 提供解決方法,
參考二位的方法設定Deepin-TIM,但部份的UI文字還是亂碼,
因此自己折騰了一下符合當前系統環境的解法

Environment:

  • OS: KDE neon 5.17 (Ubuntu 18.04)
  • KDE Plasma Version: 5.17.3
  • Input framework: fcitx 4.2.9.6
  1. 將Windows下的字型(c:\windows\fonts) 複製到deepinwine指定應用目錄,目的是解決UI文字亂碼(這裡演示Win字型是透過VM共享目錄取得)
cp ~/vbox.share/Fonts/* ~/.deepinwine/Deepin-TIM/drive_c/windows/Fonts
  1. 編寫字型註冊檔,編輯此檔目的是解決輸入框文字亂碼
vim ~/.deepinwine/Deepin-TIM/font.reg
--- INSERT ---
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"
"msyh"="msyh.ttc"
"Arial"="msyh.ttc"
  1. 註冊設定,此指令會將~/.deepinwine/Deepin-TIM/font.reg設定註冊到~/.deepinwine/Deepin-TIM/system.reg
WINEPREFIX=~/.deepinwine/Deepin-TIM deepin-wine regedit ~/.deepinwine/Deepin-TIM/font.reg
  1. 重啟TIM

大佬你好,我照这个方法做了,结果提示:

wine: cannot find L"C:\windows\system32\winemenubuilder.exe"
wine version: 2.18

TIM的字体还是乱码

@huanhexiao
Copy link

huanhexiao commented Sep 17, 2020

感謝二位大佬 @zegangYang @jemyzhang 提供解決方法,
參考二位的方法設定Deepin-TIM,但部份的UI文字還是亂碼,
因此自己折騰了一下符合當前系統環境的解法

Environment:

  • OS: KDE neon 5.17 (Ubuntu 18.04)
  • KDE Plasma Version: 5.17.3
  • Input framework: fcitx 4.2.9.6
  1. 將Windows下的字型(c:\windows\fonts) 複製到deepinwine指定應用目錄,目的是解決UI文字亂碼(這裡演示Win字型是透過VM共享目錄取得)
cp ~/vbox.share/Fonts/* ~/.deepinwine/Deepin-TIM/drive_c/windows/Fonts
  1. 編寫字型註冊檔,編輯此檔目的是解決輸入框文字亂碼
vim ~/.deepinwine/Deepin-TIM/font.reg
--- INSERT ---
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"
"msyh"="msyh.ttc"
"Arial"="msyh.ttc"
  1. 註冊設定,此指令會將~/.deepinwine/Deepin-TIM/font.reg設定註冊到~/.deepinwine/Deepin-TIM/system.reg
WINEPREFIX=~/.deepinwine/Deepin-TIM deepin-wine regedit ~/.deepinwine/Deepin-TIM/font.reg
  1. 重啟TIM

大佬你好,我照这个方法做了,结果提示:

wine: cannot find L"C:\windows\system32\winemenubuilder.exe"
wine version: 2.18

TIM的字体还是乱码

自己回答一下,我用下面这个打开了TIM的“wine设置”:

WINEPREFIX="$HOME/.deepinwine/Deepin-TIM/" deepin-wine winecfg

1、“应用程序”下面的“Windows版本”原本是“Windows XP”,改成“Windows 10”。我试了一下,Vista、 win7、win8都可以
2、“显示”里的“屏幕分辨率”随意调一下
字体就正常了。

@iChunyu
Copy link

iChunyu commented Oct 2, 2020

系统语言非中文时,中文全显示成方块,需要在

/opt/deepinwine/tools/run.sh

中将 WINE_CMD 那一行修改为

WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine"

非常感谢分享,借花献佛稍微补充一下,我的Ubuntu20.04英文版系统,还需要对/opt/deepinwine/tools/run_v2.sh作同样的修改才能彻底避免中文乱码。

@Equity0
Copy link

Equity0 commented Oct 13, 2020

ubuntu 20, 输入框显示的输入中文内容为竖条
安装 fonts-wqy-microhei 完美解决

@caixxiong
Copy link

caixxiong commented Nov 2, 2020

1.查看应用是怎么运行的
cat /usr/share/applications/deepin.com.wechat.desktop

#!/usr/bin/env xdg-open

[Desktop Entry]
Encoding=UTF-8
Type=Application
X-Created-By=Deepin WINE Team
Categories=chat;
Icon=deepin.com.wechat
Exec="/opt/deepinwine/apps/Deepin-WeChat/run.sh" -u %u
Name=WeChat
Name[zh_CN]=微信
Comment=Tencent WeChat Client on Deepin Wine
StartupWMClass=WeChat.exe
MimeType=

2.查看运行脚本
cat /opt/deepinwine/apps/Deepin-WeChat/run.sh

#!/bin/sh

#   Copyright (C) 2016 Deepin, Inc.
#
#   Author:     Li LongYu <lilongyu@linuxdeepin.com>
#               Peng Hao <penghao@linuxdeepin.com>

BOTTLENAME="Deepin-WeChat"
APPVER="2.6.8.65deepin0"
EXEC_PATH="C:/Program Files/Tencent/WeChat/WeChat.exe"

if [ -n "$EXEC_PATH" ];then
    /opt/deepinwine/tools/run_v2.sh $BOTTLENAME $APPVER "$EXEC_PATH" "$@"
else
    /opt/deepinwine/tools/run_v2.sh $BOTTLENAME $APPVER "uninstaller.exe" "$@"
fi

3.修改对应脚本
sudo vim /opt/deepinwine/tools/run_v2.sh

# 将 WINE_CMD 那一行修改为
WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine"

牛逼!!我看了所有的方法, 就这个最靠谱, 非常感谢
接下来又出现一个问题, 输入框无法输入中文?头疼

@caixxiong
Copy link

系统语言非中文时,中文全显示成方块,需要在

/opt/deepinwine/tools/run.sh

中将 WINE_CMD 那一行修改为

WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine"

系统语言非中文时,中文全显示成方块,需要在

/opt/deepinwine/tools/run.sh

中将 WINE_CMD 那一行修改为

WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine"

如果这样还是不行, 有可能你需要改的是run_v2.sh, 而不是run.sh

@FQLin
Copy link

FQLin commented Nov 15, 2020

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

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

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

#2.修改系统注册表
gedit ~/.deepinwine/Deepin-WeChat/system.reg
#修改以下两行
"MS Shell Dlg"="msyh"
"MS Shell Dlg 2"="msyh"

#3.字体注册
gedit 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

#4.reboot

完美解决我的问题

@weijiang1994
Copy link

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

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

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

#2.修改系统注册表
gedit ~/.deepinwine/Deepin-WeChat/system.reg
#修改以下两行
"MS Shell Dlg"="msyh"
"MS Shell Dlg 2"="msyh"

#3.字体注册
gedit 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

#4.reboot

完美解决 大哥喝茶

@12313kaihuang
Copy link

感謝二位大佬 @zegangYang @jemyzhang 提供解決方法,
參考二位的方法設定Deepin-TIM,但部份的UI文字還是亂碼,
因此自己折騰了一下符合當前系統環境的解法

Environment:

  • OS: KDE neon 5.17 (Ubuntu 18.04)
  • KDE Plasma Version: 5.17.3
  • Input framework: fcitx 4.2.9.6
  1. 將Windows下的字型(c:\windows\fonts) 複製到deepinwine指定應用目錄,目的是解決UI文字亂碼(這裡演示Win字型是透過VM共享目錄取得)
cp ~/vbox.share/Fonts/* ~/.deepinwine/Deepin-TIM/drive_c/windows/Fonts
  1. 編寫字型註冊檔,編輯此檔目的是解決輸入框文字亂碼
vim ~/.deepinwine/Deepin-TIM/font.reg
--- INSERT ---
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"
"msyh"="msyh.ttc"
"Arial"="msyh.ttc"
  1. 註冊設定,此指令會將~/.deepinwine/Deepin-TIM/font.reg設定註冊到~/.deepinwine/Deepin-TIM/system.reg
WINEPREFIX=~/.deepinwine/Deepin-TIM deepin-wine regedit ~/.deepinwine/Deepin-TIM/font.reg
  1. 重啟TIM

大佬你好,我照这个方法做了,结果提示:
wine: cannot find L"C:\windows\system32\winemenubuilder.exe"
wine version: 2.18
TIM的字体还是乱码

自己回答一下,我用下面这个打开了TIM的“wine设置”:

WINEPREFIX="$HOME/.deepinwine/Deepin-TIM/" deepin-wine winecfg

1、“应用程序”下面的“Windows版本”原本是“Windows XP”,改成“Windows 10”。我试了一下,Vista、 win7、win8都可以
2、“显示”里的“屏幕分辨率”随意调一下
字体就正常了。

默认的Windows XP改成Windows 10之后重启引用,输入框汉字是方框的问题解决了。感谢!

@Z-bin
Copy link

Z-bin commented Jan 10, 2021

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

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

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

#2.修改系统注册表
gedit ~/.deepinwine/Deepin-WeChat/system.reg
#修改以下两行
"MS Shell Dlg"="msyh"
"MS Shell Dlg 2"="msyh"

#3.字体注册
gedit 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

#4.reboot

https://www.fonts.net.cn/font-30931224951.html 这里可以下载字体

@byte-voyager
Copy link

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

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

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

#2.修改系统注册表
gedit ~/.deepinwine/Deepin-WeChat/system.reg
#修改以下两行
"MS Shell Dlg"="msyh"
"MS Shell Dlg 2"="msyh"

#3.字体注册
gedit 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

#4.reboot

Linux Mint 20.1 成功,

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

deepin-wine 要从启动文件查看找到对应的wine位置,我的是

WINEPREFIX=~/.deepinwine/Deepin-WeChat ~/.deepinwine/deepin-wine5-stable/bin/wine regedit msyh_config.reg

@lindorx
Copy link

lindorx commented Feb 1, 2021

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

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

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

#2.修改系统注册表
gedit ~/.deepinwine/Deepin-WeChat/system.reg
#修改以下两行
"MS Shell Dlg"="msyh"
"MS Shell Dlg 2"="msyh"

#3.字体注册
gedit 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

#4.reboot

fedora33测试可以

@I-Rinka
Copy link

I-Rinka commented Feb 9, 2021

新版似乎又不行了,Ubuntu20.04,在wine的注册表检查发现msyh.ttc是已经注入了的,但是QQ依然只有输入框是方块

@I-Rinka
Copy link

I-Rinka commented Feb 9, 2021

新版似乎又不行了,Ubuntu20.04,在wine的注册表检查发现msyh.ttc是已经注入了的,但是QQ依然只有输入框是方块

解决了。。使用

WINEPREFIX=~/.deepinwine/Deepin-QQ wine regedit

打开wine的注册表,接着找到目录:
HKEY_LOCAL_MACHINE/Software/Microsoft/Windows NT/CurrentVersion/FontSubstitutes
我把里面所有的值都改为了msyh就可以了(虽然不知道为什么最后QQ启动显示的貌似是宋体?)

@xianjie-li
Copy link

ubuntu20 切换为气泡模式可解决
image

@zzzmhcn
Copy link

zzzmhcn commented Mar 22, 2021

ubuntu 20.04 遇到了这些问题并且都已解决,给大家参考

  1. 中文问题
    先试了这3个
    sudo apt-get install -y ttf-wqy-microhei
    sudo apt-get install -y ttf-wqy-zenhei
    sudo apt-get install -y xfonts-wqy
    中文显示正常了,但输入框还是不正常,打字到输入框,显示竖的长方形,我一气之下,把windows系统的字体复制过来了
    从c:\windows:\fonts\ 到 /home/你的用户名/.deepinwine/Deepin-WeChat/drive_c/windows/Fonts/
    最后全部正常了,就是多占用了500mb资源,你要是有时间可以自己慢慢删除一些无用的

  2. 截图和预览图片问题
    sudo apt install libjpeg62:i386
    然后预览图片正常,截图按alt + a正常

@wkjun
Copy link

wkjun commented Apr 5, 2021

现象: ubuntu 20.04 默认系统已经是全局中文字体,但阿里旺旺界面字体都是竖块

$ echo $LANG
zh_CN.UTF-8

解决办法: 安装一个字体,其它软件也可参考

$sudo apt-get install -y ttf-wqy-microhei

@yiyayamaya
Copy link

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

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

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

#2.修改系统注册表
gedit ~/.deepinwine/Deepin-WeChat/system.reg
#修改以下两行
"MS Shell Dlg"="msyh"
"MS Shell Dlg 2"="msyh"

#3.字体注册
gedit 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

#4.reboot

Linux Mint 20.1 成功,

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

deepin-wine 要从启动文件查看找到对应的wine位置,我的是

WINEPREFIX=~/.deepinwine/Deepin-WeChat ~/.deepinwine/deepin-wine5-stable/bin/wine regedit msyh_config.reg

老哥可以解释下最后一行吗 为啥又要wechat后面还要接bin里面的wine啊

@yiyayamaya
Copy link

yiyayamaya commented May 26, 2021

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

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

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

#2.修改系统注册表
gedit ~/.deepinwine/Deepin-WeChat/system.reg
#修改以下两行
"MS Shell Dlg"="msyh"
"MS Shell Dlg 2"="msyh"

#3.字体注册
gedit 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

#4.reboot

这个方法的注册那句有四个部分

1.~/.deepinwine/Deepin-WeChat 2.deepin-wine 3. regedit 4.msyh_config.reg

对于新版的deepin-wine是没有全局deepin-wine指令的。所以需要把第2部分换成~/.deepinwine/deepin-wine6-stable/bin/wine类似的。然后那个第3部分好像不用换? 我也不确定。反正执行完确实可以了。凑合用吧。

@wheesys
Copy link

wheesys commented May 31, 2021

系统语言非中文时,中文全显示成方块,需要在

/opt/deepinwine/tools/run.sh

中将 WINE_CMD 那一行修改为

WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine"

解决了,多谢

@zhmxx
Copy link

zhmxx commented Jul 14, 2021

系统语言非中文时,中文全显示成方块,需要在
/opt/deepinwine/tools/run.sh
中将 WINE_CMD 那一行修改为
WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine"

非常感谢分享,借花献佛稍微补充一下,我的Ubuntu20.04英文版系统,还需要对/opt/deepinwine/tools/run_v2.sh作同样的修改才能彻底避免中文乱码。

感谢,Ubuntu 18.04英文版系统设置了run.sh和run_v2.sh后正常了。

@DS-Liu
Copy link

DS-Liu commented Nov 2, 2021

系统语言非中文时,中文全显示成方块,需要在

/opt/deepinwine/tools/run.sh

中将 WINE_CMD 那一行修改为

WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine"

没用

@ItsLaurelNotYanny
Copy link

系统语言非中文时,中文全显示成方块,需要在

/opt/deepinwine/tools/run.sh

中将 WINE_CMD 那一行修改为

WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine"

这个路径下有多个版本的 run.sh, 应该改版本号最新的么?
Selection_023

@wlya
Copy link

wlya commented Feb 24, 2022

终极解决方案
上述方式略微有一些缺陷,修复如下:
在run.sh/v2/v3/v4的开头,添加如下:

export LC_ALL=zh_CN.UTF-8

@wangkaiX
Copy link

我是把windows的所有字体复制过来解决的

@SkyzcYou
Copy link
Contributor

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

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

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

#2.修改系统注册表
gedit ~/.deepinwine/Deepin-WeChat/system.reg
#修改以下两行
"MS Shell Dlg"="msyh"
"MS Shell Dlg 2"="msyh"

#3.字体注册
gedit 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

#4.reboot

Ubuntu 20.04 解决啦 感恩

@imliuruiqi
Copy link

终极解决方案 上述方式略微有一些缺陷,修复如下: 在run.sh/v2/v3/v4的开头,添加如下:

export LC_ALL=zh_CN.UTF-8

Thanks a lot!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests