Bug 18726 - RFE: help write locale-specific tests
Add an example matching rule for the language specific
This commit is contained in:
parent
e5a59eac90
commit
769306665c
|
@ -677,6 +677,41 @@ $XDG_CONFIG_HOME/fontconfig/fonts.conf
|
||||||
<match target="font">
|
<match target="font">
|
||||||
<edit name="rgba" mode="assign"><const>rgb</const></edit>
|
<edit name="rgba" mode="assign"><const>rgb</const></edit>
|
||||||
</match>
|
</match>
|
||||||
|
<!--
|
||||||
|
use WenQuanYi Zen Hei font when serif is requested for Chinese
|
||||||
|
-->
|
||||||
|
<match>
|
||||||
|
<!--
|
||||||
|
If you don't want to use WenQuanYi Zen Hei font for zh-tw etc,
|
||||||
|
you can use zh-cn instead of zh.
|
||||||
|
Please note, even if you set zh-cn, it still matches zh.
|
||||||
|
if you don't like it, you can use compare="eq"
|
||||||
|
instead of compare="contains".
|
||||||
|
-->
|
||||||
|
<test name="lang" compare="contains">
|
||||||
|
<string>zh</string>
|
||||||
|
</test>
|
||||||
|
<test name="family">
|
||||||
|
<string>serif</string>
|
||||||
|
</test>
|
||||||
|
<edit name="family" mode="prepend">
|
||||||
|
<string>WenQuanYi Zen Hei</string>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
<!--
|
||||||
|
use VL Gothic font when sans-serif is requested for Japanese
|
||||||
|
-->
|
||||||
|
<match>
|
||||||
|
<test name="lang" compare="contains">
|
||||||
|
<string>ja</string>
|
||||||
|
</test>
|
||||||
|
<test name="family">
|
||||||
|
<string>sans-serif</string>
|
||||||
|
</test>
|
||||||
|
<edit name="family" mode="prepend">
|
||||||
|
<string>VL Gothic</string>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
</fontconfig>
|
</fontconfig>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</refsect2>
|
</refsect2>
|
||||||
|
|
Loading…
Reference in New Issue