Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Weird display issue with fonts
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
dritanm
n00b
n00b


Joined: 15 May 2016
Posts: 13

PostPosted: Sun Aug 25, 2024 12:22 am    Post subject: [SOLVED] Weird display issue with fonts Reply with quote

Hi all,

I hadn't updated my system for a few weeks, then last week when I did a full update and rebooted into the new kernel, I started seeing some weird display problems. Certain letters/words are missing entirely from gnome-shell. See this screenshot as an example (I typed "set" in the search box but the letters don't show up): https://imgur.com/a/OIbbG3W

Some information about the system and what I have tried so far:
1. Running latest stable gentoo-sources (6.6.47-gentoo-x86_64) and gnome 45.
2. The issue is apparent during GDM login as well. For example most of the letters in the greyed out "Password" box do not appear. Neither do all the letters in the accessibility menu on the top right corner of GDM.
3. Most (but not all) of the missing letters reappear if I change the scaling or enable Large Text in the accessibility options.
4. Applications like Firefox/Thunderbird/Terminal do not appear to be affected. Other applications like Signal-Desktop just have a blank canvas...
5. I tested this on XFCE4 and Gnome-Classic as well, both seem to have the same issue.
6. I am running Wayland and the GPU is an AMD 6900XT (mesa driver).

I tried resetting gnome dconf settings, disabled all gnome extensions, and reinstalled a number of fonts. The issue still persists..

Before rebuilding the entire world tree, I thought I'd ask here and see if anyone has any idea for why this is happening

Thanks!
Dritan


Last edited by dritanm on Sun Aug 25, 2024 5:03 am; edited 1 time in total
Back to top
View user's profile Send private message
rab0171610
Guru
Guru


Joined: 24 Dec 2022
Posts: 420

PostPosted: Sun Aug 25, 2024 3:40 am    Post subject: Reply with quote

I would not rebuild the entire "world tree". I had a similar problem before. I use KDE but a Gnome/GTK app (Gnome Disks) was displaying weird font issues. In my case, it turned out to be the cache for font config (possibly corrupted) and/or the fallback font choice. I don't remember the exact details. It recurred a few times even after fixing the issue. Finally it stopped and never happened again.
You can read more about font config (and the fallback font) here:
https://wiki.archlinux.org/title/Font_configuration
I am not real familiar with font config, but I think this may help to rebuild/reset the cache:
https://unix.stackexchange.com/questions/772257/invalid-cache-files-in-cache-fontconfig

Quote:



It's probably not critical, but you can force recreation of all caches:

fc-cache --really-force

first deletes all caches (that the current user can delete) and recreates them.

fc-cache -v

should be clean, afterwards.

You may have to do some investigating a digging around but I think you will figure out what is causing the issue and will learn something in the process. I am not saying 100 percent this is your problem but it is something to eliminate as a possibility.
Back to top
View user's profile Send private message
dritanm
n00b
n00b


Joined: 15 May 2016
Posts: 13

PostPosted: Sun Aug 25, 2024 5:06 am    Post subject: Reply with quote

Thanks rab0171610 for the pointer. The Archwiki article was very informative!

Unfortunately I don't think my issue was related to fonts as forcing the cache update didn't do anything. However, downgrading mesa from ~amd to stable (24.1.3) resolved my issue. It appears the graphic artifacts were driver related. I guess I'll wait until mesa-24.2 is stable before trying again.
Back to top
View user's profile Send private message
flexibeast
Guru
Guru


Joined: 04 Apr 2022
Posts: 440
Location: Naarm/Melbourne, Australia

PostPosted: Sun Aug 25, 2024 11:09 pm    Post subject: Reply with quote

As a heads-up, the Gentoo wiki has its own page about Fontconfig, and in fact i recently did a bit of a revamp of various fonts-related pages, including some updates to the 'root' page, "Fonts", and adding a "Fonts/Background" page to explain a number of fonts-related concepts that i've noticed users having issues with.

The Arch wiki indeed has lots of useful information, but i'd like to encourage Gentoo users to check the Gentoo wiki first - and, if possible, either report significant gaps here, or close those gaps by adding to the wiki (which only requires creating an account).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum