How do I increase the font size in Ubuntu 18.04 LTS for a HDPI / 4K display?
I have a Dell XPS 15-9560 laptop with 15.6" 4K Ultra HD (3840 x 2160) IGZO IPS 350-nits Touch-screen, and NVIDIA GeForce GTX1050 4GB GDDR5. It's having 4K resolution. Right from the grub screen to Ubuntu, it's having very very small fonts. Is there any way i can increase the fonts size?
This is a real nice laptop - real MacBook Pro killer..getting very popular...and i can see a lot of folks will be having the same issue.
Edit 1
I messed up my current installation of ubuntu desktop 18.04 LTS and have to reinstall it all over again. Just tried this one now: Adding nouveau.modeset=0 to the boot parameters was much better workaround for smaller fonts and i am having much better resolution now. It's much better solution than others as of now.
Seems to ubuntu18.04 LTS is not as stable and much more complex issues with Nvidia graphics card than the previous versions.
36 Answers
You may use (GNOME) Tweaks to adjust font sizes of various elements. First install Tweaks by running
sudo apt install gnome-tweaks(or sudo apt install gnome-tweak-tool).
Then launch Tweaks and go to the Fonts section, you'll get the options to change font sizes.
3You may use (UNITY) Tweaks to adjust font size along with other UI elements. Install it using:
sudo apt install unity-tweak-toolThe settings I'm using for scaling on a 1920x1080 monitor are 1.38 times. You would probably want 2.00 or higher:
The Text scaling factor scales both fonts and UI elements like title bars, menus, etc.
Here's a GIF showing changing scaling from 1.38 to 1.00 and then to 2.00:
In the .gif above scaling starts at 1.38 on a 1920x1080 monitor. Then it is changed to 1 and everything gets tiny, which is normal. Then it is changed to 2 which is ideal for the visually challenged. Once again the icons have fixed pixel size and the font shrinking or expanding under the icon gives the illusion their size is changing.
There are others tweak tools that may be of interest in 18.04 LTS:
$ apt list | grep tweak
gajim-rostertweaks/bionic,bionic 1.0.0-3 all
gnome-tweak-tool/bionic,bionic 3.28.1-1 all
gnome-tweaks/bionic,bionic 3.28.1-1 all
mate-tweak/bionic,bionic 18.04.16-1 all
mousetweaks/bionic,bionic,now 3.12.0-4 amd64 [installed]
tweak/bionic 3.02-2 amd64
unity-tweak-tool/bionic,bionic,now 0.0.7ubuntu4 all [installed] 12 You don't need to install third-party tools if you using Unity.
Just go: Unity control center -> Displays -> Scale for menu and title bars
Now you can scale everything to a readable size:
This helped me when I upgraded from 16.04 lts to 18.04 lts:
- open system settings
- select universal access
- turn on large text
Some people suggest to just scale everything up going to Settings > Displays:
run_scaled
As you may notice scaling up may work for decorations and almost all apps. But some apps will still look tiny. For example, MySQL Workbench have this bug since 2009.
To scale per-application windows on Xorg for HiDPIs (as Arch Wiki state) you can use run_scaled.
Install it:
sudo apt install xpra # tool to detach/reattach running X programs
curl "" > ~/.local/bin/
chmod +x ~/.local/bin/run_scaledThen
run_scaled someappBy default will scale by a factor of 2 but you can use --scale option.
Not sure if this will help, but in XUbuntu:
- Lower Left corner button (where the big K is)
- Applications > Settings > System Settings > Font