mirror of
https://github.com/storytold/soundcraft.git
synced 2026-10-25 19:16:49 -06:00
The Linux font search list in `crates/ui-egui/src/fonts.rs` covered Debian/Ubuntu (`/usr/share/fonts/truetype/dejavu`, `/usr/share/fonts/TTF`, `/usr/share/fonts/dejavu`) and Arch (`/usr/local/share/fonts/dejavu`) for DejaVu, and a single path for Liberation Sans. It did not cover Fedora's package layout: - `/usr/share/fonts/dejavu-sans-fonts/DejaVuSans.ttf` (and -Bold) - `/usr/share/fonts/liberation-sans-fonts/LiberationSans-Regular.ttf` On Fedora, neither path matched, the `load_from_fontconfig` path returned None (e.g. the user only has Liberation Sans installed, not DejaVu), and the UI fell back to egui's built-in fonts. Those don't cover the menu glyphs (`→ ▸ ▾ ♯ ✕`), so the symbols showed as empty boxes. Add the two Fedora paths to the REGULAR and BOLD candidates, in the same order as the existing Debian and Arch paths. `load` still tries fontconfig first; the direct paths are the fallback. cargo test -p soundcraft-ui-egui: 105 passed, 0 failed.