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
@@ -24,7 +24,7 @@ Le projet est conçu pour être **construit depuis Windows via WSL** (les script
|
||||
### À l'installation
|
||||
- **Choix du bureau** dans Anaconda, avec compatibilité VR affichée (i3 = SteamVR ✔ ; Hyprland = ✘)
|
||||
- **Page récapitulative** avant toute écriture disque : config choisie (langue, clavier, fuseau, comptes, partitionnement, bureau, nom de machine) + matériel détecté (GPU, disques, virtualisation, réseau)
|
||||
- **Automatique en fin d'install** : drivers GPU (NVIDIA/AMD/Intel) + **Vulkan** (loader, `vulkaninfo`, ICD de chaque GPU détecté — portables hybrides compris — et ICD 32 bits pour Steam/Proton), outils invité VM (VMware/VirtualBox/QEMU/Hyper-V), PipeWire + pavucontrol, Bluetooth (BlueZ + blueman), luminosité (brightnessctl), **pare-feu firewalld activé**, Steam + Wine + Monado + MangoHud + gamemode, clavier/locale, hostname, sudo pour l'utilisateur créé, branding FWS
|
||||
- **Automatique en fin d'install** : drivers GPU (NVIDIA/AMD/Intel) + **Vulkan** (loader, `vulkaninfo`, ICD de chaque GPU détecté — portables hybrides compris — et ICD 32 bits pour Steam/Proton), outils invité VM (VMware/VirtualBox/QEMU/Hyper-V), PipeWire + pavucontrol, Bluetooth (BlueZ + blueman), luminosité (brightnessctl), **police emoji par défaut** (Noto Color Emoji + règle fontconfig `etc/fonts/conf.d/99-fws-emoji.conf` : « emoji » résolu, emoji en dernier recours des polices génériques, bitmap autorisé), **pare-feu firewalld activé**, Steam + Wine + Monado + MangoHud + gamemode, clavier/locale, hostname, sudo pour l'utilisateur créé, branding FWS
|
||||
- **Bureau lancé au démarrage** : le display manager du bureau choisi (SDDM/GDM) est activé et `graphical.target` est la cible par défaut. Si l'installation des paquets du bureau échoue pendant le `%post` (réseau/miroirs), le système installé se **répare tout seul au premier démarrage** (`fws-desktop-finalize.service` → `fws-desktop-retry --auto`) : le bureau est installé puis l'écran de connexion apparaît, sans intervention
|
||||
|
||||
### Sur le système installé (outillage `fws-*`)
|
||||
@@ -267,6 +267,7 @@ L'ISO finale est générée dans `./out/FWS-YYYY.MM.DD-x86_64.iso`.
|
||||
- **Spokes Anaconda FWS** : `configs/baseline/airootfs/usr/lib/python3.14/site-packages/pyanaconda/ui/gui/spokes/` (`fws_desktop.py`, `fws_recap.py`, `fws_network.py` — écran « Connexion Internet » post-langue : sélecteur minimal Wi-Fi/Ethernet (plus l'UI complexe d'anaconda) + mot de passe, persistance du Wi-Fi via `%post --nochroot` ; glades dans `usr/share/anaconda/ui/spokes/` (`fws_network.glade`))
|
||||
- **Configs bureaux & thèmes** : `configs/releng/airootfs/usr/local/share/fws/` (hyprland, i3, waybar, polybar, wofi, rofi, picom) et `usr/share/sddm/themes/fws/`
|
||||
- **Fond d'écran par défaut** : `configs/releng/airootfs/usr/local/share/fws/wallpaper.png` (PNG 2560×1440, **embarqué dans l'ISO** — rien à télécharger au premier boot) appliqué par `usr/local/bin/fws-wallpaper` : autostart XDG (`etc/xdg/autostart/`) pour KDE/GNOME/XFCE, `swaybg` pour Hyprland et `feh` pour i3 (paquets ajoutés au `%post`)
|
||||
- **Police emoji par défaut** : `configs/releng/airootfs/etc/fonts/conf.d/99-fws-emoji.conf` (Noto Color Emoji, paquet `noto-fonts-emoji` : présent sur le live, ajouté à la transaction du bureau par le `%post` et à la base de `fws-setup-hardware`) — famille `emoji` résolue, emoji en dernier recours des familles génériques, `embeddedbitmap` forcé pour que les emoji bitmap ne soient jamais désactivés ; piles de polices des bureaux (waybar, wofi, polybar) complétées
|
||||
- **Outils fws-\*** : `configs/releng/airootfs/usr/local/bin/`
|
||||
- **GRUB du système installé (dualboot / bare-metal)** : `configs/releng/airootfs/etc/default/grub` (overlay : `GRUB_DISABLE_OS_PROBER=false` — sur Arch c'est `true` par défaut, d'où les « menus GRUB vides » sans Windows) ; `usr/local/bin/fws-grub-finalize` + `etc/systemd/system/fws-grub-finalize.service` (activé par le %post) : au 1er démarrage du système installé, réinstalle GRUB en `--removable` (chemin `EFI/BOOT/BOOTX64.EFI`, boote même si le firmware ASUS… oublie l'entrée NVRAM), crée/rafraîchit l'entrée NVRAM « FWS » (efibootmgr) et régénère le menu avec os-prober (Windows détecté)
|
||||
- **Récupération sur l'OS installé** : entrée GRUB générée par `configs/releng/airootfs/etc/grub.d/42_fws-recovery` → `fws-recovery.target` + `fws-recovery-boot.service` (`etc/systemd/system/`) ; lanceur `usr/local/share/applications/fws-recovery.desktop` + politique polkit `usr/share/polkit-1/actions/org.fws.recovery.policy`
|
||||
|
||||
@@ -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