The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

Views: 3,210     Votes:  3     ✅ Solution
Tags: 18.04   gnome   fonts   display-resolution  
Link: 🔍 See Original Answer on Ask Ubuntu 🔗

Title: How do I increase the font size for a specific application in Ubuntu 18.04 running Gnome?
ID: /2019/07/12/How-do-I-increase-the-font-size-for-a-specific-application-in-Ubuntu-18.04-running-Gnome_
Created: July 12, 2019    Edited:  July 13, 2019
Upload: November 24, 2022    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false

Create a script call ue (Unity Editor). Place within it:

xrandr --dpi 144
unity-editor "$@"    # Or whatever the program is you want to run

Mark the script as executable using:

chmod a+x ue

Call the script using


Adjust 144 to 192 if you want it double magnification. Smaller if you want less magnification.

Your screen may blink when script starts up but that is normal.


The default DPI (Dots Per Inch) is 96. When set to 100 font size increased by 4% which might not be noticeable. To confirm initial DPI use one of these commands:

$ xdpyinfo | grep dots
  resolution:    96x96 dots per inch

$ grep DPI /var/log/Xorg.0.log
[     9.555] (--) NVIDIA(0): DPI set to (43, 44); computed from "UseEdidDpi" X config
[     9.761] (==) modeset(G0): DPI set to (96, 96)

In the above script you can reset xrandr back to default DPI of 96 by adding the following line to the bottom:

xrandr --dpi 96

I’ve never encountered a need to do this, but you might.

⇧ CPU overheating in Ubuntu 18.04 problem installing sqlite3 using apt-get install  â‡©