通过编辑用户目录中的.fonts.conf (或编辑全局/etc/fonts/fonts.conf),我可以指定默认的字体系列,用于在X中显示特定的语言。但是,我无法以同样的方式强制使用特定的字体大小。
例如,以下内容迫使在Linux Libertine中显示俄语:
<fontconfig>
<match>
<test name="lang">
<string>rus</string>
</test>
<edit mode="prepend" name="family">
<string>Linux Libertine</string>
</edit>
</match>
</fontconfig>我尝试过添加以下XML标记,但它不起作用:
<edit mode="assign" name="size">
<int>18</int>
</edit>发布于 2012-06-19 07:00:39
您可以尝试重用这个我的片段,其中将指定字体的字体大小增加给定的因子。:
<!--
Scaling a chosen font with Fontconfig.
By poige, 2008.
-->
<match target="font">
<test name="family">
<string>Liberation Sans</string>
</test>
<edit name="pixelsize" mode="assign">
<times><name>pixelsize</name>, <double>1.1</double></times>
</edit>
</match>https://unix.stackexchange.com/questions/41062
复制相似问题