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:
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>
|
||||
@@ -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
|
||||
|
||||
@@ -35,6 +35,8 @@ line-size = 0
|
||||
font-0 = Noto Sans:size=10;2
|
||||
font-1 = Symbols Nerd Font:size=12;3
|
||||
font-2 = Noto Sans:weight=bold:size=10;2
|
||||
; dernier recours = emoji (police par défaut, etc/fonts/conf.d/99-fws-emoji.conf)
|
||||
font-3 = Noto Color Emoji:size=10;2
|
||||
modules-left = i3 xwindow
|
||||
modules-center = date
|
||||
modules-right = updates keyhelp backlight pulseaudio network cpu memory tray power
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
(paquet ttf-nerd-fonts-symbols, installé avec le bureau Hyprland). */
|
||||
|
||||
* {
|
||||
font-family: "Noto Sans", "Symbols Nerd Font", sans-serif;
|
||||
/* Noto Color Emoji : dernier recours, pour les emoji des titres/notifications
|
||||
(police par défaut, cf. etc/fonts/conf.d/99-fws-emoji.conf). */
|
||||
font-family: "Noto Sans", "Symbols Nerd Font", "Noto Color Emoji", sans-serif;
|
||||
font-size: 13px;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ window {
|
||||
background-color: rgba(30, 30, 46, 0.97);
|
||||
border: 2px solid #89b4fa;
|
||||
border-radius: 14px;
|
||||
font-family: "Noto Sans Mono", monospace;
|
||||
font-family: "Noto Sans Mono", "Noto Color Emoji", monospace;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ window {
|
||||
border-radius: 10px;
|
||||
margin: 12px;
|
||||
padding: 8px 12px;
|
||||
font-family: "Noto Sans", sans-serif;
|
||||
font-family: "Noto Sans", "Noto Color Emoji", sans-serif;
|
||||
}
|
||||
|
||||
#input image { color: #89b4fa; }
|
||||
|
||||
@@ -4,7 +4,7 @@ window {
|
||||
background-color: rgba(30, 30, 46, 0.96); /* base #1e1e2e */
|
||||
border: 2px solid #89b4fa;
|
||||
border-radius: 14px;
|
||||
font-family: "Noto Sans", sans-serif;
|
||||
font-family: "Noto Sans", "Noto Color Emoji", sans-serif;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
|
||||
@@ -344,7 +344,10 @@ esac
|
||||
# Navigateur de base ajouté DÈS QU'un bureau est choisi (jamais en CLI).
|
||||
# + python-gobject : fenêtre de bienvenue fws-hello (GTK3 vient avec Firefox)
|
||||
# + pacman-contrib : checkupdates/paccache (indicateur de MàJ + fws-update)
|
||||
[ -n "$PKGS" ] && PKGS="$PKGS firefox python-gobject pacman-contrib"
|
||||
# + noto-fonts-emoji : police emoji par défaut, dans la MÊME transaction que le
|
||||
# bureau (règle fontconfig : etc/fonts/conf.d/99-fws-emoji.conf) — sans elle,
|
||||
# les emoji des notifications/menus s'affichent en carrés vides.
|
||||
[ -n "$PKGS" ] && PKGS="$PKGS firefox python-gobject pacman-contrib noto-fonts-emoji"
|
||||
if [ -n "$PKGS" ]; then
|
||||
pacman-key --init &>/dev/null || true
|
||||
pacman-key --populate archlinux &>/dev/null || true
|
||||
|
||||
@@ -95,6 +95,9 @@ xorg-xrandr
|
||||
xorg-xsetroot
|
||||
openbox
|
||||
ttf-dejavu
|
||||
# Emoji de l'installateur et du live (règle fontconfig :
|
||||
# etc/fonts/conf.d/99-fws-emoji.conf) — Anaconda affiche des emoji FWS.
|
||||
noto-fonts-emoji
|
||||
|
||||
# --- Agents VM (pratique pour tester l'ISO) ---
|
||||
qemu-guest-agent
|
||||
|
||||
Reference in new issue
Block a user