Update the priority of fontconfig config for Noto Sans, Noto Serif and Noto Sans Mono to make them default.

This commit is contained in:
Akira TAGOH 2022-01-19 13:53:06 +09:00
parent 46887d0ff9
commit 3a60f243d0
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<match>
<test name="family">
<string>math</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend" binding="same">
<string>Noto Sans Math</string>
</edit>
<edit name="fonthashint" mode="append">
<bool>true</bool>
</edit>
</match>
<alias>
<family>Noto Sans Math</family>
<default>
<family>math</family>
<family>sans-serif</family>
</default>
</alias>
</fontconfig>

View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<match>
<test name="family">
<string>math</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend" binding="same">
<string>Noto Sans Math</string>
</edit>
<edit name="fonthashint" mode="append">
<bool>false</bool>
</edit>
</match>
<alias>
<family>Noto Sans Math</family>
<default>
<family>math</family>
<family>sans-serif</family>
</default>
</alias>
</fontconfig>