Flatpak+gtk apps has no fonts

I have updated frequently, both for flatpaks (most of my flatpaks are installed system wide, some need sudo to run but not all of them).

I am having an issue where the fonts on all of these applications are non-existent, everything looks is squares, this looks to be a issue with both gtk+flatpak. I use homemanager, and nix-flatpak, but i doubt nix-flatpak is the cause as the only thing it does is install flatpaks.

Here is the info:
Flatpak 1.16.6

- system: `"x86_64-linux"`
- host os: `Linux 6.18.22, NixOS, 26.05 (Yarara), 26.05.20260414.4bd9165`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.34.6`
- nixpkgs: `/nix/store/0d1kf07ph2ply64i1y247f9q2an9cw00-source`

1 Like

Found the fix:

rm -rf ~/.cache/fontconfig/

flatpak list --app --columns=application | while read app; do
echo “Rebuilding font cache for $app…”
flatpak run --command=fc-cache “$app” -r 2>/dev/null || echo "  skipped $app (no fc-cache)"
done
1 Like

I have the same issue after updating from 25.11 to 26.05. I dont use homemanager or nix-flatpak.
You script can also be defined as one command for easier copy & paste execution :smiley:

flatpak list --app --columns=application | xargs -I {} flatpak run --command=fc-cache {} -r

I just added this as a comment to my nix config so I can run it whenever its necessary