Ubuntu 23.04(Lunar Lobster)中修改界面字体异常的问题咨询
Hey there, let's dig into this font issue you're facing! It's totally frustrating when a tweak that worked perfectly in an older version stops behaving as expected, right?
First off, let's break down what's likely happening here. Ubuntu 23.04 shifted more apps and components over to using libadwaita—the modern GTK toolkit for GNOME. While gnome-tweaks still lets you adjust the GNOME Shell font, many newer (and even some updated) apps now follow libadwaita's default font settings instead of the old global tweaks you relied on in 22.04. So this might not be a bug in your installation, but rather a change in how the system handles font preferences.
Here are a few fixes you can try to get Ubuntu Condensed working across your whole interface:
Use
gsettingscommands to set global fonts manually
Open up a terminal and run these commands one by one (adjust the font size if you prefer):gsettings set org.gnome.desktop.interface font-name 'Ubuntu Condensed 11' gsettings set org.gnome.desktop.interface document-font-name 'Ubuntu Condensed 11' gsettings set org.gnome.desktop.interface monospace-font-name 'Ubuntu Mono 13'This directly updates the system's core font settings, which should be picked up by most apps.
Make GTK3 apps follow libadwaita's font settings
If some older GTK3 apps still aren't using Ubuntu Condensed, install theadw-gtk3theme. It bridges the gap between GTK3 and libadwaita, ensuring consistent font (and theme) behavior across all apps. You can install it via the terminal:sudo apt install adw-gtk3-themeThen switch to the theme in gnome-tweaks under the "Appearance" tab.
Check for conflicting font config files
Sometimes custom font configs in~/.config/fontconfig/fonts.confcan override system settings. If you have this file, take a quick look to make sure it isn't forcing a different font. You can rename it temporarily (e.g.,fonts.conf.bak) to test if that fixes the issue.
If none of these steps work, it might be a minor bug specific to your setup. In that case, you could report it on Ubuntu's official bug tracker to help the devs look into it—but odds are one of the above fixes will get your fonts back to how you want them.
备注:内容来源于stack exchange,提问作者Coeur Noir

