ITPub博客

首页 > Linux操作系统 > Linux操作系统 > ubuntu上的/etc/fonts/local.conf(转)

ubuntu上的/etc/fonts/local.conf(转)

原创 Linux操作系统 作者:BSDLite 时间:2007-08-15 21:57:04 0 删除 编辑
ubuntu上的/etc/fonts/local.conf(转)[@more@]分三段,
第一段是append,使中英文一起显示英文优先使用英文字体;
第二段是让系统认文泉译点阵字用的;
第三段是字体prefer,选字体的顺序,我注释掉了,因为language-selector里的fontconfig里已经有相应的内容了。
我使用的中文字体为微软雅黑,点阵是文泉译。

[table=95%][tr][td]<fontconfig>
<include ignore_missing="yes">/var/lib/defoma/fontconfig.d/fonts.conf</include>

/usr/X11R6/lib/X11/fonts
-->


<match target="pattern">
<test qual="any" name="family">
<string>serif</string>
</test>
<edit name="family" mode="append" binding="strong">
<string>DejaVu Serif</string>
<string>microsoft yahei</string>
</edit>
</match>

<match target="pattern">
<test qual="any" name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="append" binding="strong">
<string>DejaVu Sans</string>
<string>microsoft yahei</string>
</edit>
</match>

<match target="pattern">
<test qual="any" name="family">
<string>monospace</string>
</test>
<edit name="family" mode="append" binding="strong">
<string>DejaVu Sans Mono</string>
<string>microsoft yahei</string>
</edit>
</match>


<selectfont>
<acceptfont>
<pattern>
<patelt name="family"><string>WenQuanYi Bitmap Song</string></patelt>
</pattern>
</acceptfont>
</selectfont>


serif

DejaVu Serif




sans-serif

DejaVu Sans




monospace

DejaVu Sans Mono


-->


</fontconfig>


[/td][/tr][/table]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10617542/viewspace-959925/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
  • 博文量
    1872
  • 访问量
    4073866