之前一直是debian系用户, 最近2年一直使用KDE neon. 鉴于KDE neon user edition越来越不稳定, 遂尝试切换到opensuse tumbleweed看看.
系统安装一切顺利, 平时使用的软件也都能顺利安装.
在安装完fcitx5后, 发现选字框有些字无法显示, 于是安装了一些源内的中文字体: google-noto-sans-cjk-fonts, google-noto-sans-sc-fonts, google-noto-sans-sc-mono-fonts, google-noto-serif-sc-fonts.
安装了WPS, 把wps相关字体也安装了一下. 然后把windows 11 相关.ttf字体也安装了.
正常用了几天, 今天突然发现任务栏(panel)和窗口标题栏的中文字体显示粗细不一. 如下图所示:
除了安装字体, 我没有动过字体相关的设置. 系统的locale设置是en-US.
我在YaST2中添加了中文为第二语言:
字体设置用的是默认的:
搜索了一下论坛, 发现以下话题可能有点相关:
或者Yast → Sysconfig,然后搜索 font,找到带ja,ko,zh字样的那一行,然后把zh_CN调到最前面,这样可以调整字体匹配顺序(先用中文字体然后才是日韩字体)
于是也调整了一下顺序, 不过没有变化, 问题依旧.
我将我home下的fonts.conf完成删除掉, 然后执行fc-cache -f, 也没有作用.
以下是一些帮助各位debug的信息:
>fc-match -s sans | head
arial.ttf: "Arial" "Regular"
verdana.ttf: "Verdana" "Regular"
Roboto-Regular.ttf: "Roboto" "Regular"
NotoSans-Regular.ttf: "Noto Sans" "Regular"
NotoSansSymbols-Regular.ttf: "Noto Sans Symbols" "Regular"
LiberationSans-Regular.ttf: "Liberation Sans" "Regular"
Cantarell-VF.otf: "Cantarell" "Regular"
NimbusSans-Regular.otf: "Nimbus Sans" "Regular"
luxisr.ttf: "Luxi Sans" "Regular"
DejaVuSans.ttf: "DejaVu Sans" "Book"
>fc-match -s sans-serif | head
arial.ttf: "Arial" "Regular"
verdana.ttf: "Verdana" "Regular"
Roboto-Regular.ttf: "Roboto" "Regular"
NotoSans-Regular.ttf: "Noto Sans" "Regular"
NotoSansSymbols-Regular.ttf: "Noto Sans Symbols" "Regular"
LiberationSans-Regular.ttf: "Liberation Sans" "Regular"
Cantarell-VF.otf: "Cantarell" "Regular"
NimbusSans-Regular.otf: "Nimbus Sans" "Regular"
luxisr.ttf: "Luxi Sans" "Regular"
DejaVuSans.ttf: "DejaVu Sans" "Book"
写到这里, 我又思考了一下, 是不是字体顺序的问题, 然后我修改了下fonts.conf后调整了一下字体顺序. 结果还是解决问题.
> fc-match -s sans | head
NotoSans-Regular.ttf: "Noto Sans" "Regular"
NotoSansCJKtc-VF.otf: "Noto Sans CJK TC" "Regular"
NotoColorEmoji.ttf: "Noto Color Emoji" "Regular"
arial.ttf: "Arial" "Regular"
verdana.ttf: "Verdana" "Regular"
Roboto-Regular.ttf: "Roboto" "Regular"
NotoSansSymbols-Regular.ttf: "Noto Sans Symbols" "Regular"
LiberationSans-Regular.ttf: "Liberation Sans" "Regular"
NimbusSans-Regular.otf: "Nimbus Sans" "Regular"
luxisr.ttf: "Luxi Sans" "Regular"
> fc-match -s sans-serif | head
NotoSans-Regular.ttf: "Noto Sans" "Regular"
NotoSansCJKtc-VF.otf: "Noto Sans CJK TC" "Regular"
NotoColorEmoji.ttf: "Noto Color Emoji" "Regular"
arial.ttf: "Arial" "Regular"
verdana.ttf: "Verdana" "Regular"
Roboto-Regular.ttf: "Roboto" "Regular"
NotoSansSymbols-Regular.ttf: "Noto Sans Symbols" "Regular"
LiberationSans-Regular.ttf: "Liberation Sans" "Regular"
NimbusSans-Regular.otf: "Nimbus Sans" "Regular"
luxisr.ttf: "Luxi Sans" "Regular"
所以请各位看看这个是不是bug, 还是我的配置有问题??