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 072d995113
commit 19b41a6483
9 files changed
+73 -8

No files matched your search

@@ -13,7 +13,8 @@
# vulkaninfo et les variantes 32 bits (Steam/Proton) quand un bureau est choisi,
# - les outils invité selon l'hyperviseur (VMware/VirtualBox/QEMU/Hyper-V),
# - le son/micro/casque (PipeWire), le Bluetooth (BlueZ), les conteneurs
# (Podman),
# (Podman), la police emoji par défaut (Noto Color Emoji, cf.
# etc/fonts/conf.d/99-fws-emoji.conf),
# - et — si un bureau est choisi — la stack « comme Windows » : Steam, Wine,
# VR (Monado/OpenXR → SteamVR pour HTC Vive / Valve Index ; Oculus n'a pas
# de support Linux officiel), winboat-bin (apps Windows).
@@ -64,7 +65,8 @@ esac
# brightnessctl : réglage de luminosité sans root (via logind) — consommé par
# les touches XF86MonBrightness* et la molette du module backlight de waybar.
BASE="pipewire pipewire-alsa pipewire-pulse pipewire-jack wireplumber \
pavucontrol bluez bluez-utils brightnessctl podman"
pavucontrol bluez bluez-utils brightnessctl podman \
noto-fonts-emoji"
# Gestionnaire Bluetooth graphique : KDE et GNOME ont le leur ; blueman pour
# les bureaux qui n'en fournissent pas (tray + assistant d'appairage).
case "$DESK" in
@@ -99,6 +101,10 @@ done
if [ -n "$VALID" ]; then
log "installation :$VALID"
pacman -S --noconfirm --needed $VALID || log "certains paquets non installés"
# polices : le cache fontconfig doit inclure la police emoji qui vient
# d'être installée, sinon les applications déjà lancées ne la voient qu'au
# prochain démarrage de session.
command -v fc-cache >/dev/null 2>&1 && fc-cache -f >/dev/null 2>&1
fi
# NB : winboat-bin (AUR) n'est PAS installé ici (fws-local n'existe pas sur la