deepin-wine-ubuntu icon indicating copy to clipboard operation
deepin-wine-ubuntu copied to clipboard

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

Open leichangqing opened this issue 5 years ago • 75 comments

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

leichangqing avatar Jul 18 '19 04:07 leichangqing

Me too

zoukang1993 avatar Jul 18 '19 05:07 zoukang1993

同样

aur3l14no avatar Jul 18 '19 12:07 aur3l14no

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

LeoJhonSong avatar Jul 18 '19 12:07 LeoJhonSong

完美 解决了, 要用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!

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

leichangqing avatar Jul 19 '19 00:07 leichangqing

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

/opt/deepinwine/tools/run.sh

中将 WINE_CMD 那一行修改为

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

maxwell-hub avatar Jul 19 '19 00:07 maxwell-hub

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

/opt/deepinwine/tools/run.sh

中将 WINE_CMD 那一行修改为

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

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

LeoJhonSong avatar Jul 19 '19 12:07 LeoJhonSong

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

/opt/deepinwine/tools/run.sh

中将 WINE_CMD 那一行修改为

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

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

TSwiftie avatar Jul 20 '19 10:07 TSwiftie

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

/opt/deepinwine/tools/run.sh

中将 WINE_CMD 那一行修改为

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

感谢,成功了

imsjz avatar Jul 23 '19 08:07 imsjz

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

ouening avatar Jul 23 '19 08:07 ouening

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

下载微软雅黑字体,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

zegangYang avatar Jul 24 '19 10:07 zegangYang

输入的文字还是乱码。

xcrossed avatar Jul 25 '19 04:07 xcrossed

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

always-web avatar Jul 26 '19 01:07 always-web

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

permgenspace avatar Jul 26 '19 10:07 permgenspace

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

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

Yixiao-Zhang avatar Jul 27 '19 10:07 Yixiao-Zhang

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

zegangYang avatar Jul 28 '19 03:07 zegangYang

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

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

zegangYang avatar Jul 28 '19 03:07 zegangYang

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

suning2012 avatar Jul 30 '19 01:07 suning2012

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

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

按照楼上https://github.com/wszqkzqk/deepin-wine-ubuntu/issues/136#issuecomment-514585722 已修复

permgenspace avatar Jul 30 '19 06:07 permgenspace

微信发送图片不成功

suning2012 avatar Jul 30 '19 09:07 suning2012

@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 ,

suning2012 avatar Jul 30 '19 10:07 suning2012

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

jemyzhang avatar Aug 02 '19 06:08 jemyzhang

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

724399396 avatar Aug 04 '19 06:08 724399396

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

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

tobbytan avatar Aug 15 '19 06:08 tobbytan

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

/opt/deepinwine/tools/run.sh

中将 WINE_CMD 那一行修改为

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

成功了,感谢老铁

james-xiao avatar Aug 19 '19 09:08 james-xiao

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

/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"

牛逼,终于解决了

AlanHootman avatar Aug 30 '19 17:08 AlanHootman

https://github.com/wszqkzqk/deepin-wine-ubuntu/issues/136#issuecomment-513047538 https://github.com/wszqkzqk/deepin-wine-ubuntu/issues/136#issuecomment-514585722

做了这两个以后 我收到了一个:https://github.com/wszqkzqk/deepin-wine-ubuntu/issues/179 有人会解决吗 谢谢!

JigaoLuo avatar Sep 06 '19 16:09 JigaoLuo

输入的文字还是乱码。

输入的文字是乱码,可以通过设置字体为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 可以解决输入字体乱码

q3593216 avatar Sep 17 '19 05:09 q3593216

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

下载微软雅黑字体,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",好慌。而且我的这个很奇怪,重启完电脑,刚打开是没问题的,但是过一会打字就变成了竖黑条

mrguozp avatar Sep 25 '19 08:09 mrguozp

输入的文字还是乱码。

输入的文字是乱码,可以通过设置字体为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 可以解决输入字体乱码

这个字体设置在在哪来的?

liguobao avatar Oct 05 '19 05:10 liguobao

font{
    line-height: 1.6;
}
ul,ol{
    padding-left: 20px;
    list-style-position: inside;
}



字体设置取决于你是wine还是deepin wine,跟windows下注册表一样,详情请看:https://blog.csdn.net/hymanjack/article/details/100168300

    
        
    


  

    
                
        
            
                
                        
                            
                        
                        
                            naruto jiang
                        
                
                    
                        
                                邮箱:[email protected]
                        
                    
            
        
    
    


    签名由
    网易邮箱大师
    定制




在2019年10月5日 13:31,李国宝<[email protected]> 写道: 

输入的文字还是乱码。

输入的文字是乱码,可以通过设置字体为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 可以解决输入字体乱码

这个字体设置在在哪来的?

—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.

AlanHootman avatar Oct 05 '19 08:10 AlanHootman