Ubuntu – Ubuntu 20.04 interface font too small after restart, even with high scaling factor

fontsinterfacenvidiarestart

So I was configuring VS code on my Notebook when suddenly I noticed that my interface font got really small on my desktop, terminal and files.

I use Gnome Tweaks Tool to increase my scaling factor to 1,15 , but, even though it was active, the font stayed tiny.

The solution I found was moving my scaling factor, which instantly fixed my font issue, however, every time I restart my Notebook the font gets tiny again and I have to repeat the process.

I tried reseting my font configuration using this command, but had no success.

gsettings reset org.gnome.desktop.interface text-scaling-factor

I also tried using the command

dconf reset -f /

Finally, I tried using dconf-editor, but still had no success altering the
font rendering DPI or changing the scaling factor.

All of the steps I mentioned fixed my fonts temporarily, but the issue still persists when I restart my Notebook

I am out of ideas and even considered getting a fresh Ubuntu install by now…

My video card: NVIDIA GeForce GTX 1050 GPU

Best Answer

  • Update 2020-10-07

    The bug is now fixed, you can get it with apt and remove any workaround you had chosen.

    Original answer

    It's a recently introduced bug in Mutter which is the default window manager for Gnome Shell.
    https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/1892440

    It seems to affect mainly Nvidia cards.

    It was fixed in Pop!_OS by removing the patch named "x11-Add-support-for-fractional-scaling-using-Randr.patch"
    https://github.com/pop-os/pop/issues/1170 https://github.com/pop-os/mutter/commit/a912c7fc25f4797047790fc5df1711eeb31af282

    Ubuntu devs did not say how they will resolve this but at least they acknowledged the problem and someone is assigned to it.

    The only known workaround for now is what you described: in Gnome Tweaks, change the scaling factor to something else and back to the original value. Unfortunately, as you noted this will be needed after each login and even after each restart of Gnome Shell (ALT+F2, r).