How do I fix Firefox fonts having extra spacing and weird numbers on Ubuntu?
After upgrading one of my computers to Firefox 99.0.1 on Ubuntu, it's started rendering some fonts—specifically DejaVu Sans and Arial, although there may be others—incorrectly. The actual words are fine, but everything has about 14px of extra spacing after every word, and all the numbers are rendering as what appear to be emojis, though not like any emoji number I've seen before. All numbers are just oddly-spaced gray images with gradients.
It happens in webpages using one of those two fonts and in the UI elements. It happened on both Ubuntu 21.10 and 22.04. It doesn't happen in any other program, just Firefox. I've tried uninstalling and reinstalling it.
Does anyone know how I can fix this?