1
0
Fork 0

fonts: remove some glyphs from Source* font families

but it doesn't work 🙁
This commit is contained in:
tastytea 2022-09-07 22:58:25 +02:00
parent 5ad39998fd
commit f3858a40f0
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 41 additions and 19 deletions

View File

@ -29,28 +29,50 @@
<!-- Add generic emoji family. -->
<match target="pattern">
<test qual="any" name="family"><string>emoji</string></test>
<edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
<test qual="any" name="family">
<string>emoji</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Noto Color Emoji</string>
</edit>
</match>
<!-- FIXME: Doesn't work -->
<!--
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:
-->
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:
-->
<match target="scan">
<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>
<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>
<int>0x2764</int> <!-- red heart -->
<int>0x2615</int> <!-- hot beverage -->
<int>0x1f4a9</int> <!-- pile of poo -->
</charset>
</minus>
</edit>
</match>
</fontconfig>