Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wine-for-wechat聊天列表字体无法正常显示 #3288

Open
BYT0723 opened this issue Apr 27, 2023 · 20 comments
Open

wine-for-wechat聊天列表字体无法正常显示 #3288

BYT0723 opened this issue Apr 27, 2023 · 20 comments
Assignees

Comments

@BYT0723
Copy link

BYT0723 commented Apr 27, 2023

问题类型 / Type of issues

  • 其它 / other

受影响的软件包 / Affected packages

  • wine-for-wechat
  • wine-wechat-setup

图片
图片
就像上面的图一样,在聊天列表里这个字体显示就有问题,但是这聊天或者联系人里,字体就能正常显示。也试过安装wqy-zenhei后重新安装,没有效果。太令人苦恼了...

@lilydjwg
Copy link
Member

试试在 Wine 环境中安装 simsun.ttc(放到 ~/.local/lib/wine-wechat/default/drive_c/windows/Fonts 下)。或者 WINEPREFIX=$HOME/.local/lib/wine-wechat/default winetricks fakechinese 安装个假的微软字体)。

@hubutui
Copy link
Contributor

hubutui commented Apr 27, 2023

假的微软字体是啥?用思源黑体替代吗?

@lilydjwg
Copy link
Member

不知道是思源黑体还是思源宋体。总之是内容是思源字体,但名字写的是微软字体的名字。

@BYT0723
Copy link
Author

BYT0723 commented Apr 27, 2023

图片
还是这样的,但是能看出中文字体变成了微软的字体

@lilydjwg
Copy link
Member

把这个导入注册表试试?

[System\\CurrentControlSet\\Control\\FontAssoc\\Associated Charset]
"ANSI(00)"="YES"
"OEM(FF)"="YES"
"SYMBOL(02)"="NO"

以及检查注册表文件 system.reg 中的 [Software\\Microsoft\\Windows\\CurrentVersion\\Fonts] 等项,找到并删除类似 "Courier"="coure.fon" 的行。

@BYT0723
Copy link
Author

BYT0723 commented Apr 27, 2023

图片
图片
改完后,还是之前一样
图片

不知道这个对你有没有帮助,我的启动界面以及收藏界面也有方框
图片
图片

@lilydjwg
Copy link
Member

那我也不知道怎么办了。不过顺便说一下,改注册表文件的话,需要在 wine 没有在运行的时候操作(请 htop 检查进程)。安装字体之后不清楚,不过最好也完全重启 wine 环境。

@BYT0723
Copy link
Author

BYT0723 commented Apr 27, 2023

好的,我想是我的系统某些地方有问题,我之前是有使用过wine-for-wechat的,安装好字体就可以使用的。

@Dark1X
Copy link

Dark1X commented May 10, 2023

vim /home/username/.wine/system.reg,搜索 LogPixels,将 LogPixels"=dword:00000060 修改为 LogPixels"=dword:00000070、搜索 FontSubstitutes,将 "MS Shell Dlg"="Tahoma, MS Shell Dlg 2 ="Tahoma 修改为 "MS Shell Dlg"="SimSun, MS Shell Dlg 2 ="SimSun 试一下

@BYT0723
Copy link
Author

BYT0723 commented May 11, 2023

vim /home/username/.wine/system.reg,搜索 LogPixels,将 LogPixels"=dword:00000060 修改为 LogPixels"=dword:00000070、搜索 FontSubstitutes,将 "MS Shell Dlg"="Tahoma, MS Shell Dlg 2 ="Tahoma 修改为 "MS Shell Dlg"="SimSun, MS Shell Dlg 2 ="SimSun 试一下

图片
没有效果的,我觉得并不是字体的问题。因为聊天区里的字体都是能正常显示的

@BYT0723
Copy link
Author

BYT0723 commented May 11, 2023

图片
会是这个问题导致的吗?

@dongxicc
Copy link

确实,同样的问题,聊天界面字体正常,微信ui的标题字体是方框,改了注册表,安装了字体也没用

@dongxicc
Copy link

图片 会是这个问题导致的吗?

你的解决了吗

@zhangdzhang
Copy link

把假simsun放到.local/share/fonts 和/home/username/.local/lib/wine-wechat/default/drive_c/windows/Fonts/这两个目录下,然后用下面这个方法修改后,重启,有效。

vim /home/username/.wine/system.reg,搜索 LogPixels,将 LogPixels"=dword:00000060 修改为 LogPixels"=dword:00000070、搜索 FontSubstitutes,将 "MS Shell Dlg"="Tahoma, MS Shell Dlg 2 ="Tahoma 修改为 "MS Shell Dlg"="SimSun, MS Shell Dlg 2 ="SimSun 试一下

@lilydjwg
Copy link
Member

我试了一下 #3288 (comment) 的方案,没能解决问题。

@wxqwinner
Copy link

@BYT0723
Copy link
Author

BYT0723 commented Jun 14, 2023

试试这个https://bbs.deepin.org/en/post/213530?offset=0&postId=1269543

串线了,wine-for-wechat是cn的大佬们自己改的,跟deepin-wine应该不一样,而且应该不是字体问题,我是双系统,把windows下的字体全部拷贝过来依然会存在方框

@BYT0723
Copy link
Author

BYT0723 commented Jun 14, 2023

我试了一下 #3288 (comment) 的方案,没能解决问题。

嗯,是的,我试过了,以后我会即时跟进这边的进度

@3togo
Copy link

3togo commented Sep 9, 2023

I got the same problem too. Has this problem been fixed?

@TOLIE-OFFICIAL
Copy link

fake_simsun.zip
use this font, it fixed

试试这个https://bbs.deepin.org/en/post/213530?offset=0&postId=1269543

串线了,wine-for-wechat是cn的大佬们自己改的,跟deepin-wine应该不一样,而且应该不是字体问题,我是双系统,把windows下的字体全部拷贝过来依然会存在方框

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

No branches or pull requests

9 participants