Fedora 8 中字体设置学习心得体会(2)

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/fonts.conf file to configure system font access -->
<fontconfig>
<match target="pattern">
<edit mode="assign" >
<double>96</double>
</edit>
</match>

<!-- 配置字体目录 -->
<dir>/usr/share/fonts/zh_CN/vista</dir>

<!-- 配置雅黑字体
<match target="font">
<test qual="any" compare="eq">
<string>微软雅黑</string>
<string>Microsoft YaHei</string>
</test>
<test compare="more_eq">
<double>12</double>
</test>
<test compare="less_eq">
<double>18</double>
</test>
<edit mode="assign">
<const>vrgb</const>
</edit>
<edit mode="assign" >
<bool>true</bool>
</edit>
<edit mode="assign" >
<bool>false</bool>
</edit>
<edit mode="assign" >
<bool>true</bool>
</edit>
<edit mode="assign" >
<const>hintfull</const>
</edit>
</match>
-->
<match target="font" >
<test qual="any" compare="eq" >
<string>none</string>
</test>
<edit mode="assign">
<const>vrgb</const>
</edit>
<edit mode="assign" >
<bool>true</bool>
</edit>
<edit mode="assign" >
<bool>false</bool>
</edit>
<edit mode="assign" >
<bool>true</bool>
</edit>
<edit mode="assign" >
<const>hintfull</const>
</edit>
</match>
<!-- 配置 -->
<match target="font" >
<test qual="any" compare="eq" >
<string>Segoe UI</string>
</test>
<edit mode="assign">
<const>none</const>
</edit>
<edit mode="assign" >
<bool>true</bool>
</edit>
<edit mode="assign" >
<bool>false</bool>
</edit>
<edit mode="assign" >
<bool>true</bool>
</edit>
<edit mode="assign" >
<const>hintfull</const>
</edit>
</match>
<!--
已注释,不会被读取
English portion substitution 将指定字体中的英文字体替换成Segoe UI字体
<match target="pattern" >
<test >
<string>微软雅黑</string>
<string>Microsoft YaHei</string>
</test>
<edit mode="prepend" binding="strong" >
<string>Segoe UI</string>
</edit>
</match>
<match target="pattern" >
<test >
<string>微软雅黑</string>
<string>Microsoft YaHei</string>
</test>
<edit mode="prepend" binding="strong" >
<string>Segoe UI</string>
</edit>
</match>
-->
</fontconfig>

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/513747e7d895c9e29c0c0086c514f577.html