[chromium] File chooser is not displaying font

Hello,

I managed to stay away from the snap version of Chromium as it’s security popups are annoying for web development. But the upgrade to Ubuntu 19.10 forced snap on me…

So now the file picker is unusable as fonts seems to not load properly:

Screenshot%20from%202020-04-29%2014-05-51

I found this fix and though it was sufficient:

sudo rm /var/cache/fontconfig/*
rm ~/.cache/fontconfig/*
sudo fc-cache -r -v
rm -rf ~/snap/chromium/common/.cache/fontconfig/

and then restart chromium.
It worked the first time, but once I reboot the problem is back.

I’m looking for a definitive solution.

Thanks in advance,
Antoine

edit : one command from the fix was missing and the order was wrong. Fixed

@jamesh looks like the fonts problem is appearing in more places now.

FWIW, do you have any custom installed fonts in ~/.fonts? I recently had similar breakage because of variable fonts I had installed (https://github.com/adobe-fonts/source-code-pro/tree/release/VAR). I removed the offending font and all was well.

Associated launchpad bug report:

I don’t have a ~/.fonts but I do install new fonts on a regular basis for my jobs.

Is there a way to narrow it to a particular font ? There is no indication of a particular problematic font when I launch Chromium with chromium --enable-logging=stderr

@pintout Unfortunately I do not recall seeing an error about the specific font either. :frowning:

Hopefully the font experts can shed some light… :slight_smile: