These days my main operating system is Kubuntu 17.10 because I’ve switched to KDE as my desktop environment. However, since my Asus laptop comes with a hybrid GPU setup, I decided to enable the more capable Nvidia GPU by installing its proprietary driver. Once I enabled it on Kubuntu 17.10, then after rebooting, I noticed that the fonts looks slightly (unnecessarily) bigger on the desktop and on the application windows. Luckily I was able to fix it quite easily. So if you’re having the same issue, this post will help you out for fixing it.
To be honest, I rarely use the Nvidia GPU. And the only reason why I installed and enabled the proprietary driver was to see if it would break the user auto-login feature. This was purely out of my curiosity because that’s what happened in GNOME, while I reviewed Ubuntu 17.10.
Interestingly however, while it broke the user auto-login feature in Ubuntu 17.10, it did not change the font sizes. But in Kubuntu 17.10, it made the fonts look bigger without breaking the user auto-login function (as shown in the below screenshot).
So anyway, the easiest way to fix this is through the font configuration settings window of KDE. To open it, search for
fonts in the start-menu or from the start-menu navigate to ‘
Settings‘ --> ‘
System Settings‘ --> ‘
Fonts‘. Once you’ve opened it, at the bottom of the configuration window you’ll see a disabled setting called ‘Force fonts DPI’.
Now simply enable it (by clicking on the small square button) and make sure the value is set to
96, then click on the ‘
Apply‘ button. KDE will notify you that the newly entered DPI (dots or pixels, per inch) settings will only be applied to newly opened applications. So to get a sense of how things look, you can open an application such as the file manager. If you have already opened up the file manager then fonts on it won’t receive the changes you just made. In that case re-open a new window of your file manager and it should display the changes that you just made (below screenshot features the same desktop after changing the DPI to 96):
If you’re satisfied with the results, then you can either reboot (my preferred option) or logout and re-login so that the changes are applied to the entire desktop.
96 may not always work for everyone. Depending on the size of your screen and its native resolution (or the Pixel Density, to be precise) you may have to experiment a little to get the proper value. For instance, in my case the fonts started to look bigger after enabling the proprietary Nvidia driver. That happens when the DPI is too high. Nvidia had set it to 102. So I actually had to reduce it to 96. But if your fonts started to look too small after enabling it, then that’s an indication your DPI is set too low, so to fix it, you have to increase it. In such instances, the general advice is to start off with 96 and then use one quarter of
96 (=24) & use that as the increment, until you reach the optimal setting. So for instance, if 96 doesn’t fix your issue, then try entering
120 (96 + 24) as the DPI value (again, only newly opened application windows will display the changes you’ve just made). If you’re still not happy with the results, try 144 (
120 + 24) etc … I guess you get the general idea.
That said, you should’t fear to experiment a little. And you don’t always have to follow the textbook recommendations. For instance, that one quarter of 96 increment is generally advised to keep the scaling artifacts at minimum. But, these days, pixel density varies a lot from one manufacture to the other. So you can either increase or decrease the DPI freely, and experiment a little, till you arrive at the desired result. Good luck.