2022-03-18 14:34:27 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2022-09-07 23:03:37 +02:00
|
|
|
<!DOCTYPE fontconfig SYSTEM "/usr/share/xml/fontconfig/fonts.dtd">
|
2022-03-18 14:34:27 +01:00
|
|
|
<fontconfig>
|
|
|
|
<!-- Set default fonts -->
|
|
|
|
<alias>
|
|
|
|
<family>monospace</family>
|
|
|
|
<prefer>
|
|
|
|
<family>Source Code Pro</family>
|
2022-09-10 07:32:14 +02:00
|
|
|
<family>Source Han Mono</family>
|
2022-03-18 14:34:27 +01:00
|
|
|
<family>Noto Color Emoji</family>
|
|
|
|
</prefer>
|
|
|
|
</alias>
|
|
|
|
<alias>
|
|
|
|
<family>serif</family>
|
|
|
|
<prefer>
|
2022-08-26 00:44:35 +02:00
|
|
|
<family>Source Serif 4</family>
|
2022-03-18 14:34:27 +01:00
|
|
|
<family>Source Serif Pro</family>
|
2022-09-10 07:32:14 +02:00
|
|
|
<family>Source Han Serif</family>
|
2022-03-18 14:34:27 +01:00
|
|
|
<family>Noto Color Emoji</family>
|
|
|
|
</prefer>
|
|
|
|
</alias>
|
|
|
|
<alias>
|
|
|
|
<family>sans-serif</family>
|
|
|
|
<prefer>
|
2022-08-26 00:44:35 +02:00
|
|
|
<family>Source Sans 3</family>
|
2022-03-18 14:34:27 +01:00
|
|
|
<family>Source Sans Pro</family>
|
2022-09-10 07:32:14 +02:00
|
|
|
<family>Source Han Sans</family>
|
2022-03-18 14:34:27 +01:00
|
|
|
<family>Noto Color Emoji</family>
|
|
|
|
</prefer>
|
|
|
|
</alias>
|
2022-07-27 15:55:43 +02:00
|
|
|
|
|
|
|
<!-- Add generic emoji family. -->
|
2022-07-28 13:10:38 +02:00
|
|
|
<match target="pattern">
|
2022-09-07 22:58:25 +02:00
|
|
|
<test qual="any" name="family">
|
|
|
|
<string>emoji</string>
|
|
|
|
</test>
|
|
|
|
<edit name="family" mode="assign" binding="same">
|
|
|
|
<string>Noto Color Emoji</string>
|
|
|
|
</edit>
|
2022-07-28 13:10:38 +02:00
|
|
|
</match>
|
|
|
|
|
|
|
|
<!--
|
2022-09-07 23:03:37 +02:00
|
|
|
If other fonts contain emoji glyphs, they could interfere and make some
|
|
|
|
emojis rendered in wrong font (often in black-and-white).
|
|
|
|
For example, DejaVu Sans contains black-and-white emojis, which we can
|
|
|
|
remove using the following trick:
|
2022-09-07 22:58:25 +02:00
|
|
|
-->
|
2022-07-28 13:10:38 +02:00
|
|
|
<match target="scan">
|
2022-09-07 22:58:25 +02:00
|
|
|
<test name="family" compare="contains">
|
|
|
|
<string>DejaVu</string>
|
|
|
|
</test>
|
|
|
|
<edit name="charset" mode="assign" binding="same">
|
|
|
|
<minus>
|
|
|
|
<name>charset</name>
|
|
|
|
<charset>
|
|
|
|
<range>
|
|
|
|
<int>0x1f600</int>
|
|
|
|
<int>0x1f640</int>
|
|
|
|
</range>
|
|
|
|
</charset>
|
|
|
|
</minus>
|
|
|
|
</edit>
|
|
|
|
</match>
|
|
|
|
|
|
|
|
<!-- Exclude some glyphs from Source* font families -->
|
|
|
|
<match target="scan">
|
|
|
|
<test name="family" compare="contains">
|
|
|
|
<string>Source</string>
|
|
|
|
</test>
|
|
|
|
<edit name="charset" mode="assign" binding="same">
|
|
|
|
<minus>
|
|
|
|
<name>charset</name>
|
|
|
|
<charset>
|
2022-09-17 16:50:57 +02:00
|
|
|
<int>0x2611</int> <!-- ☑ -->
|
|
|
|
<int>0x2615</int> <!-- ☕ -->
|
|
|
|
<int>0x263a</int> <!-- ☺ -->
|
|
|
|
<int>0x2713</int> <!-- ✓ -->
|
|
|
|
<int>0x2714</int> <!-- ✔ -->
|
|
|
|
<int>0x2764</int> <!-- ♥ -->
|
|
|
|
<int>0x1f4a9</int> <!-- 💩 -->
|
|
|
|
<int>0x1f916</int> <!-- 🤖 -->
|
2022-09-07 22:58:25 +02:00
|
|
|
</charset>
|
|
|
|
</minus>
|
|
|
|
</edit>
|
2022-07-28 13:10:38 +02:00
|
|
|
</match>
|
2022-09-10 05:45:35 +02:00
|
|
|
</fontconfig> <!-- vim: set ts=2 sw=2 et tw=80 ft=xml: -->
|