Welcome to the Power Users community on Codidact!
Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.
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?
1 answer
The following users marked this post as Works for me:
User | Comment | Date |
---|---|---|
Ullallulloo | (no comment) | May 6, 2022 at 16:46 |
This post solved it for me. This issue is caused by having Noto Color Emoji too high in the font priority. Check /etc/fonts/local.conf
for the following item:
<match target="pattern">
<edit name="family" mode="prepend">
<string>Noto Color Emoji</string>
</edit>
</match>
It will likely be at the end. If it's not there, check /etc/fonts/fonts.conf
or ~/.config/fontconfig/fonts.conf
for it. A list of possible locations is available on the man page.
This loads Noto Color Emoji before every font. Since this font has images for numbers but not letters, it will replace numbers but let letters be the intended font.
Delete those lines and restart Firefox and everything should go back to normal.
2 comment threads