zq1997 / deepin-wine

【deepin源移植】Debian/Ubuntu上的QQ/微信快速安装方式
https://deepin-wine.i-m.dev
GNU General Public License v3.0
5.18k stars 388 forks source link

【字体问题集中讨论区】中文字体显示为框框 #15

Open iselien opened 5 years ago

iselien commented 5 years ago

Screenshot from 2019-10-10 22-48-10

中文不支持呢

Ericwyn commented 2 years ago

尝试了字体问题太多方案都没效果, 最后使用复制全部windows字体到wine对应路径解决, 并且不会污染主Linux字体

  1. 找个windows系统(我是专门装个win7虚拟机), 复制C:\windows\windows/Fonts下所有字体
  2. 将字体粘贴到~/.deepinwine/Deepin-TIM/drive_c/windows/Fonts(这是TIM路径, 微信可以将路径Deepin-TIM中修改Deepin-WeChat)
  3. 解决, 重启微信或TIM能看到正常, 并且不会像替换msyh.ttc方案的字体那么丑

在此分享我复制出来的win7系统字体, 网盘下载

今天更新了最新版本(3.4.0.38) 之后,字体变成了方块,使用这个方法成功解决,在此附上一个 备份链接,转存自这位大佬

hydrandt commented 2 years ago

After last update of deepin-packaged wechat on Ubuntu 21.10, all Chinese characters became squares. Setting the environment variables as LANG=zh_CN.UTF-8 and LANGUAGE=zh_CN:en_US has resolved the issue. You can edit the launcher ( on Ubuntu it was .local/share/applications/com.qq.weixin.deepin.desktop):

Exec=env LANG=zh_CN.UTF-8 LANGUAGE=zh_CN:en_US /opt/apps/com.qq.weixin.deepin/files/run.sh -f %f

Another thing is that it seems the shadows started to show, just like they used to when I directly installed wechat using system wine. Also I can not open images.

Zhanwei-Liu commented 2 years ago

尝试了字体问题太多方案都没效果, 最后使用复制全部windows字体到wine对应路径解决, 并且不会污染主Linux字体

  1. 找个windows系统(我是专门装个win7虚拟机), 复制C:\windows\windows/Fonts下所有字体
  2. 将字体粘贴到~/.deepinwine/Deepin-TIM/drive_c/windows/Fonts(这是TIM路径, 微信可以将路径Deepin-TIM中修改Deepin-WeChat)
  3. 解决, 重启微信或TIM能看到正常, 并且不会像替换msyh.ttc方案的字体那么丑

在此分享我复制出来的win7系统字体, 网盘下载

今天更新了最新版本(3.4.0.38) 之后,字体变成了方块,使用这个方法成功解决,在此附上一个 备份链接,转存自这位大佬

亲测有效,全部覆盖掉,不要skip已存在的。

MrEthan commented 2 years ago

After last update of deepin-packaged wechat on Ubuntu 21.10, all Chinese characters became squares. Setting the environment variables as LANG=zh_CN.UTF-8 and LANGUAGE=zh_CN:en_US has resolved the issue. You can edit the launcher ( on Ubuntu it was .local/share/applications/com.qq.weixin.deepin.desktop):

Exec=env LANG=zh_CN.UTF-8 LANGUAGE=zh_CN:en_US /opt/apps/com.qq.weixin.deepin/files/run.sh -f %f

Another thing is that it seems the shadows started to show, just like they used to when I directly installed wechat using system wine. Also I can not open images.

solved on ubuntu20.04, thanks my launcher is: /opt/apps/com.qq.weixin.deepin/entries/applications/com.qq.weixin.deepin.desktop

I can open images after install the libjpeg62 sudo apt-get install libjpeg62:i386

https://github.com/wszqkzqk/deepin-wine-ubuntu

hydrandt commented 2 years ago

I can open images after install the libjpeg62 sudo apt-get install libjpeg62:i386

Yes, that did it!

Should it be made a dependency for the .deb package? @zq1997

zq1997 commented 2 years ago

This is tricky because adding a dependency requires modifying the package, which is not covered by this project.

ItsLaurelNotYanny commented 2 years ago

After last update of deepin-packaged wechat on Ubuntu 21.10, all Chinese characters became squares. Setting the environment variables as LANG=zh_CN.UTF-8 and LANGUAGE=zh_CN:en_US has resolved the issue. You can edit the launcher ( on Ubuntu it was .local/share/applications/com.qq.weixin.deepin.desktop): Exec=env LANG=zh_CN.UTF-8 LANGUAGE=zh_CN:en_US /opt/apps/com.qq.weixin.deepin/files/run.sh -f %f Another thing is that it seems the shadows started to show, just like they used to when I directly installed wechat using system wine. Also I can not open images.

solved on ubuntu20.04, thanks my launcher is: /opt/apps/com.qq.weixin.deepin/entries/applications/com.qq.weixin.deepin.desktop

我这里并没有,显示界面是正常了,但输入窗口过程中仍然是框框。 待输入完成“发送”出去方能正常显示。

rangerzhou commented 2 years ago

尝试了字体问题太多方案都没效果, 最后使用复制全部windows字体到wine对应路径解决, 并且不会污染主Linux字体

  1. 找个windows系统(我是专门装个win7虚拟机), 复制C:\windows\windows/Fonts下所有字体
  2. 将字体粘贴到~/.deepinwine/Deepin-TIM/drive_c/windows/Fonts(这是TIM路径, 微信可以将路径Deepin-TIM中修改Deepin-WeChat)
  3. 解决, 重启微信或TIM能看到正常, 并且不会像替换msyh.ttc方案的字体那么丑

在此分享我复制出来的win7系统字体, 网盘下载

今天更新了最新版本(3.4.0.38) 之后,字体变成了方块,使用这个方法成功解决,在此附上一个 备份链接,转存自这位大佬

亲测有效,全部覆盖掉,不要skip已存在的。

我替换后,点击微信图标启动,然后字体目录又恢复原来的了。。。

pheotry commented 2 years ago

尝试了字体问题太多方案都没效果, 最后使用复制全部windows字体到wine对应路径解决, 并且不会污染主Linux字体

  1. 找个windows系统(我是专门装个win7虚拟机), 复制C:\windows\windows/Fonts下所有字体
  2. 将字体粘贴到~/.deepinwine/Deepin-TIM/drive_c/windows/Fonts(这是TIM路径, 微信可以将路径Deepin-TIM中修改Deepin-WeChat)
  3. 解决, 重启微信或TIM能看到正常, 并且不会像替换msyh.ttc方案的字体那么丑

在此分享我复制出来的win7系统字体, 网盘下载

今天更新了最新版本(3.4.0.38) 之后,字体变成了方块,使用这个方法成功解决,在此附上一个 备份链接,转存自这位大佬

亲测有效,全部覆盖掉,不要skip已存在的。

debian11 gnome测试过了,Tim不能全覆盖,需要跳过已经有的文件,不然输入框里的文字无法显示或者会叠在一块儿

fe7ng654123 commented 2 years ago

我是英文系统,所以在启动脚本中增加 export LANG=zh_CN.UTF-8 export LANGUAGE=zh_CN:en_US 同时安装了wqy-microhei 就好了 如果输入框还是显示不出来,可以看看 https://wiki.archlinux.org/title/Localization/Simplified_Chinese#Fixed_Simplified_Chinese_display_as_a_variant_(Japanese)_glyph 可能是中文字体回退策略的问题

Kubuntu 21.04 实测可用,非常感谢

我是用这个解决的,搞了很久才发现原来我的mint系统本来没有自带zh_CN.UTF-8的语言包, sudo locale-gen zh_CN.UTF-8 就可以增加,然后再运行,打字就不再是白框了

viktor-yang commented 2 years ago

After last update of deepin-packaged wechat on Ubuntu 21.10, all Chinese characters became squares. Setting the environment variables as LANG=zh_CN.UTF-8 and LANGUAGE=zh_CN:en_US has resolved the issue. You can edit the launcher ( on Ubuntu it was .local/share/applications/com.qq.weixin.deepin.desktop): Exec=env LANG=zh_CN.UTF-8 LANGUAGE=zh_CN:en_US /opt/apps/com.qq.weixin.deepin/files/run.sh -f %f Another thing is that it seems the shadows started to show, just like they used to when I directly installed wechat using system wine. Also I can not open images.

solved on ubuntu20.04, thanks my launcher is: /opt/apps/com.qq.weixin.deepin/entries/applications/com.qq.weixin.deepin.desktop

我这里并没有,显示界面是正常了,但输入窗口过程中仍然是框框。 待输入完成“发送”出去方能正常显示。

在聊天输入框当中,选择一个表情,然后再删掉,此时再输入中文,就会发现中文字体已经正常显示了。From https://blog.csdn.net/weixin_41683971/article/details/108186562

MakerFace commented 2 years ago

尝试了字体问题太多方案都没效果, 最后使用复制全部windows字体到wine对应路径解决, 并且不会污染主Linux字体

  1. 找个windows系统(我是专门装个win7虚拟机), 复制C:\windows\windows/Fonts下所有字体
  2. 将字体粘贴到~/.deepinwine/Deepin-TIM/drive_c/windows/Fonts(这是TIM路径, 微信可以将路径Deepin-TIM中修改Deepin-WeChat)
  3. 解决, 重启微信或TIM能看到正常, 并且不会像替换msyh.ttc方案的字体那么丑

在此分享我复制出来的win7系统字体, 网盘下载

今天更新了最新版本(3.4.0.38) 之后,字体变成了方块,使用这个方法成功解决,在此附上一个 备份链接,转存自这位大佬

亲测有效,全部覆盖掉,不要skip已存在的。

我替换后,点击微信图标启动,然后字体目录又恢复原来的了。。。

厉害了,太棒了

IcyFeather233 commented 2 years ago

尝试了字体问题太多方案都没效果, 最后使用复制全部windows字体到wine对应路径解决, 并且不会污染主Linux字体

1. 找个windows系统(我是专门装个win7虚拟机), 复制C:\windows\windows/Fonts下所有字体

2. 将字体粘贴到**~/.deepinwine/Deepin-TIM/drive_c/windows/Fonts**(这是TIM路径, 微信可以将路径Deepin-TIM中修改Deepin-WeChat)

3. 解决, 重启微信或TIM能看到正常, 并且不会像替换msyh.ttc方案的字体那么丑

在此分享我复制出来的win7系统字体, 网盘下载 我发现我关了wine wechat然后重启,~/.deepinwine/Deepin-TIM/drive_c/windows/Fonts这个文件夹就会重置,这个方法对我没有用

nautiluschan commented 2 years ago

Ubuntu mate 21.10 同样无效。重启后~/.deepinwine/Deepin-TIM/drive_c/windows/Fonts文件夹清空了

RenChauncy commented 2 years ago

sudo apt-get install ttf-wqy-microhei #文泉驿-微米黑 sudo apt-get install ttf-wqy-zenhei #文泉驿-正黑 sudo apt-get install xfonts-wqy #文泉驿-点阵宋体

完美解决 感谢

lingxd commented 2 years ago

输入框内输入的都是方框怎么解决,其他字体就是很细的那种

739918602 commented 2 years ago

Linux Mint20.1

Linux Mint20.3 输入一个表情然后输入中文 输入框方框就解决了 不知道为啥

LeoGitHuber commented 2 years ago

尝试以上方法都不成功,因为每次更改system.reg后重启都会被覆盖,请问有人知道怎么解决吗?

rangerzhou commented 2 years ago

尝试以上方法都不成功,因为每次更改system.reg后重启都会被覆盖,请问有人知道怎么解决吗?

恢复旧版本

mksinicus commented 2 years ago

尝试以上方法都不成功,因为每次更改system.reg后重启都会被覆盖,请问有人知道怎么解决吗?

现在的版本似乎每次启动都会删除和重新生成 Wine 容器的。以微信为例可以在 /opt/apps/com.qq.weixin.deepin/files/ 找到 files.7z,是每次重新生成的容器的基础。复制到别处解压就可以修改注册表、容器内字体等等了。改好重新打包、算一下 md5sum 写到 /opt/apps/com.qq.weixin.deepin/files/files.md5sum 里面,再放回去就好。顺便还是建议改 user.regsystem.reg 容易改到不该动的东西……


The current version seems to remove and regenerate the Wine container on application startup. Taking WeChat as an example, you can find files.7z in /opt/apps/com.qq.weixin.deepin/files/, which is the basis of each regenerated container. Copy it elsewhere and decompress it to modify the registry or fonts in the container. Then repackage it, calculate the md5sum, write it to /opt/apps/com.qq.weixin.deepin/files/files.md5sum, and put it back. By the way, it is recommended to change user.reg instead of system.reg.

wzqvip commented 1 year ago

Ubuntu 20.04.5 字体安装了,qq微信正常,微软office内中文字与方框混编,word弹出安装框为全方框,ppt与excel为中文,但是界面仍存在大量方框