That rule just changes the name of the font "IPAMonaPGothic". I guess what you really want to do may be:
<match target="pattern">
<test name="lang">
<string>ru</string>
</test>
<test name="family">
<string>IPAMonaPGothic</string>
</test>
<edit name="family" modde="prepend">
<string>Arial</string>
</edit>
</match>
Though it assumes applications sets the proper language into the pattern. maybe good to check with FC_DEBUG=4 how rules are applied.
On Mon, Jun 22, 2015 at 1:44 PM, Haiku Konaru <runanashi@xxxxxxxxxxx> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hello list, my problem is that I want to use certain font
for DE. Anything is okay as-is except monstrous Cyrillic
because this font is intended for Japanese language. Taking
a quick look at font-conf man page I added this rule to my
user config:
<match target="font">
<test name="lang" compare="contains">
<string>ru</string>
</test>
<test name="family" compare="contains">
<string>IPAMonaPGothic</string>
</test>
<edit name="family" mode="assign">
<string>Arial</string>
</edit>
</match>
Which did nothing however. Did i misunderstood language test
or something?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQEcBAEBCgAGBQJVh5KyAAoJEM3P0iGxKQif/3EIALRsGpNumpMI+iHjUK3QAVxB
VXsLREyoZXqQDE1oRfPRGWhQovTlD99hB8fTkFs7l584yJxg957qC6W9dvUv7ddH
eS6c6qkIH7zXvEDTeo9C+wieJnhRkLhdhu55sToD3s9X99jrqvxGWOeR5omT9gZu
0YpRIg+nKL+GAi+atIWLEti0WjhFOXU66fflw5MEqMVlKkqT1skSnadymtzWyCJP
C7O5l6k2bdZcIQNLmpiMTvTF8OBPnvqUNbO4bqDL4o7rqTpisXZzCKUuKHm8si/i
NE/JZKvvr1tbuplg8KUa55sEzUi/BIXn4Cu5DhnJV2tZutKoecIM0WA8HBJWz8o=
=rlNE
-----END PGP SIGNATURE-----
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig
Akira TAGOH
_______________________________________________ Fontconfig mailing list Fontconfig@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/fontconfig