feat(fonts): ship a configured default emoji font

Emoji showed up as empty boxes almost everywhere: no emoji font was installed
by default, and nothing told fontconfig which family to use for them, so
GTK/Qt/Electron apps and the installer fell back to whatever the system had.
Install Noto Color Emoji on the live image, with the desktop transaction and in
the hardware base, and add a fontconfig rule that resolves the "emoji" family,
appends it as a last resort for generic families without displacing the primary
font, and keeps bitmap emoji enabled when a no-bitmap rule is active. The
desktop font stacks (waybar, wofi, polybar) list it explicitly, and the
fontconfig cache is refreshed after installation.
This commit is contained in:
BlackAngelTV committed 2026-10-29 20:02:55 +01:00
1 parent dc90658be1
commit f17dfbb6fc
9 files changed
+73 -8

No files matched your search

@@ -0,0 +1,48 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<!-- FWS — emoji par défaut (Noto Color Emoji, paquet noto-fonts-emoji).
Sans cette configuration, l'emoji ne s'affiche que dans les applications
qui font elles-mêmes du fallback glyphe par glyphe (Pango le fait, un
renderer simple non), et une règle « no bitmap » (70-no-bitmaps.conf)
suffirait à tout désactiver : Noto Color Emoji est une police bitmap
(CBDT), pas une police vectorielle.
1) famille « emoji » : c'est le nom que demandent Qt/GTK/Electron.
2) polices génériques : l'emoji est ajouté en DERNIER recours
(mode="append", binding="weak") pour ne JAMAIS prendre la place de la
police principale — un binding « strong » ferait basculer le texte
latin dans la police emoji.
3) embeddedbitmap forcé : les emoji restent affichés même si une règle
système désactive les polices bitmap.
Numéroté 99- pour s'appliquer APRÈS les alias génériques (60-latin.conf)
qu'il complète. -->
<fontconfig>
<alias binding="same">
<family>emoji</family>
<prefer><family>Noto Color Emoji</family></prefer>
</alias>
<match target="pattern">
<test qual="any" name="family"><string>sans-serif</string></test>
<edit name="family" mode="append" binding="weak"><string>Noto Color Emoji</string></edit>
</match>
<match target="pattern">
<test qual="any" name="family"><string>serif</string></test>
<edit name="family" mode="append" binding="weak"><string>Noto Color Emoji</string></edit>
</match>
<match target="pattern">
<test qual="any" name="family"><string>monospace</string></test>
<edit name="family" mode="append" binding="weak"><string>Noto Color Emoji</string></edit>
</match>
<match target="font">
<test qual="any" name="family"><string>Noto Color Emoji</string></test>
<edit name="embeddedbitmap" mode="assign" binding="strong"><bool>true</bool></edit>
</match>
</fontconfig>