Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

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?

+4
−0

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.

Screenshot of Firefox showing text issues

Does anyone know how I can fix this?

History
Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

2 comment threads

Maybe `fc-cache rebuild` is worth a try (here some background info on the command https://www.geeksfo... (1 comment)
Tried moving ~/.mozilla out of the way? (1 comment)

1 answer

+4
−0

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.

History
Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

Sign up to answer this question »