。编辑 ~/.fonts.conf 将中文字体设为 sans-serif 默认字体即可。
之前只明白是字体确实,却愣是没想到和系统字体族设置有关系,惭愧…… 可这样解决的一个后果就是英文的显示不能用我喜欢的DejaVu Sans字体了……
下面是邮件列表原文:
于 2012年03月17日 12:11, johannes hanika 写道:
>
> that looks like all gnome things are good, and all directly cairo
> drawn strings are broken?
>
> no idea what the differences there would be..
>
> -jo
Thanks for reminding me. And thanks to a3novy.
Here is one solution: Set a Chinese font (e.g. WenQuanYi Micro Hei) as the default sans-serif font of the system, then darktable will display all Chinese characters well
Here is an example in debian/Ubuntu ( ~/.fonts.conf ):
代码: 全选
<match>
<test name="family"><string>sans-serif</string></test>
<edit name="family" mode="prepend" binding="strong">
<string>WenQuanYi Micro Hei</string><!--Chinese sans-->
<string>DejaVu Sans</string>
<!--Other sans fonts here-->
</edit>
</match>