Snapped app not loading fonts on Fedora (and Arch)

FWIW, I see this problem in Kubuntu 20.04 with Plasma. When I first install my snap using the gnome-3-28 extension, I see rectangles. The suggested workaround fixes it:

sudo rm /var/cache/fontconfig/*
rm ~/.cache/fontconfig/*
fc-cache -r