我所使用的fontconfig文件(~/.config/fontconfig/fonts.conf)如下:
xmlserif DejaVu Serif sans-serif DejaVu Sans monospace DejaVu Mono Arial Liberation Sans
fc-match命令显示,sans和serif字体设置均正确(使用上述配置前输出为文泉驿字体)。
$ fc-match serif
DejaVuSerif.ttf: "DejaVu Serif" "Book"
$ fc-match sans
DejaVuSans.ttf: "DejaVu Sans" "Book"
$ fc-match monospace
odokai.ttf: "文鼎PL新中楷" "Regular"
我设置了monospace为DejaVu Mono,为什么实际上是其他字体?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
因为没有叫 DejaVu Mono 的字体。这是我的: