This commit is contained in:
Behdad Esfahbod 2017-08-02 15:41:26 +01:00
parent 9978203bf1
commit 7ef1723836
2 changed files with 38 additions and 26 deletions

View File

@ -4,6 +4,28 @@
<!-- Keep in sync with 60-generic.conf --> <!-- Keep in sync with 60-generic.conf -->
<!-- Emoji --> <!-- Emoji -->
<!-- Prefer to match color emoji font. -->
<match>
<test name="lang">
<string>und-zsye</string>
</test>
<test qual="all" name="color" compare="not_eq">
<bool>true</bool>
</test>
<test qual="all" name="color" compare="not_eq">
<bool>false</bool>
</test>
<edit name="color" mode="append">
<bool>true</bool>
</edit>
</match>
<!-- TODO
! Match on "color" and alias B&W ones first if no color is requested.
! That's "hard" because <alias> doesn't work in match and needs to be
! expanded to its non-sugar form.
!-->
<alias binding="same"> <alias binding="same">
<family>Emoji Two</family> <family>Emoji Two</family>
<default><family>emoji</family></default> <default><family>emoji</family></default>
@ -32,6 +54,7 @@
<family>EmojiOne Mozilla</family> <!-- Mozilla --> <family>EmojiOne Mozilla</family> <!-- Mozilla -->
<default><family>emoji</family></default> <default><family>emoji</family></default>
</alias> </alias>
<!-- B&W -->
<alias binding="same"> <alias binding="same">
<family>Noto Emoji</family> <!-- Google --> <family>Noto Emoji</family> <!-- Google -->
<default><family>emoji</family></default> <default><family>emoji</family></default>
@ -41,7 +64,19 @@
<default><family>emoji</family></default> <default><family>emoji</family></default>
</alias> </alias>
<!-- Add language for emoji, to match other emoji fonts. -->
<match>
<test name="family">
<string>emoji</string>
</test>
<edit name="lang" mode="prepend">
<string>und-zsye</string>
</edit>
</match>
<!-- Math --> <!-- Math -->
<!-- https://en.wikipedia.org/wiki/Category:Mathematical_OpenType_typefaces --> <!-- https://en.wikipedia.org/wiki/Category:Mathematical_OpenType_typefaces -->
<alias binding="same"> <alias binding="same">
<family>XITS Math</family> <!-- Khaled Hosny --> <family>XITS Math</family> <!-- Khaled Hosny -->
@ -72,17 +107,7 @@
<default><family>math</family></default> <default><family>math</family></default>
</alias> </alias>
<!-- Add language for math, to match other math fonts. -->
<!-- add a lang for emoji if requesting emoji family -->
<match>
<test name="family">
<string>emoji</string>
</test>
<edit name="lang" mode="prepend">
<string>und-zsye</string>
</edit>
</match>
<!-- add a lang for math if requesting math family -->
<match> <match>
<test name="family"> <test name="family">
<string>math</string> <string>math</string>
@ -91,20 +116,6 @@
<string>und-zmth</string> <string>und-zmth</string>
</edit> </edit>
</match> </match>
<!-- prefer to use the color emoji font if none is specified -->
<match>
<test name="lang">
<string>und-zsye</string>
</test>
<test qual="all" name="color" compare="not_eq">
<bool>true</bool>
</test>
<test qual="all" name="color" compare="not_eq">
<bool>false</bool>
</test>
<edit name="color" mode="append">
<bool>true</bool>
</edit>
</match>
</fontconfig> </fontconfig>

View File

@ -4,6 +4,7 @@
<!-- Keep in sync with 45-generic.conf --> <!-- Keep in sync with 45-generic.conf -->
<!-- Emoji --> <!-- Emoji -->
<alias binding="same"> <alias binding="same">
<family>emoji</family> <family>emoji</family>
<prefer> <prefer>