Fonts: Difference between revisions
Previous hack does not work in case there are same font subpaths in multiple font packages, which seem to be occurring more likely in NixOS 25.11. This solution instead partly replicates fontDir logic and creates flat dir with all fonts symlinked. related discussion happened here: https://discourse.nixos.org/t/25-11-upgrade-error-two-given-paths-contain-a-conflicting-subpath/72972/14 |
→Solution 3: Configure bindfs for fonts/cursors/icons support: add info about font cache recreation inside flatpak container |
||
| Line 310: | Line 310: | ||
noto-fonts-cjk | noto-fonts-cjk | ||
]; | ]; | ||
</syntaxhighlight> | </syntaxhighlight>Note that font cache inside flatpak container may not be recreated after changes to fonts in <code>/usr/share/fonts</code>, because font cache seem to be relying on file timestamps that are missing in <code>/nix/store</code>. | ||
You can make sure that font directory is bind-mounted properly inside flatpak container by running <code>flatpak enter <instance> findmnt | grep /run/host/fonts</code>, or by running <code>flatpak enter <instance> ls -alh /run/host/fonts</code> and compare it to <code>ls -alh /usr/share/fonts</code>. | |||
If everything is mounted properly, but you still do not see fonts in flatpak app - force font cache recreation inside flatpak container: <code>flatpak enter <instance> fc-cache -</code><code>f -v</code> | |||
=== Noto Color Emoji doesn't render on Firefox === | === Noto Color Emoji doesn't render on Firefox === | ||