Change the GNOME shell font
Many aspects of the shell can be adjusted within a single .css file in the following location: You can open this file with any text editor of your choice. My preference is to use nano, a text editor that displays the content of a text file inside your terminal. Since this file is buried in your root directory, you will first need to get administrator privileges before you can edit it. One way to do this is by adding sudo before your command. To use nano, put the line below into your terminal window: You will be greeted with a screen that looks like this:
Use the arrow keys on your keyboard to navigate inside the file. You are looking for a line that reads: In this line, change “Cantarell” to your font of choice. You can also alter the font size by adjusting the “font-size” number in the next line. In the image below, I have changed the font to “Liberation Sans” size “10“.
To exit out of nano, press “Ctrl + o” (to save the changes), follow by “Ctrl + x”. Now you are almost done. You need to restart the shell before you can see the changes you have made. Press “Alt + F2”. In the window that pops up, type “r“. Press “Enter”, and you will see that your shell is now sporting a font of your choice.
Change the system fonts
But wait, the applications are still rocking Cantarell! Don’t worry; changing these fonts is made simple thanks to the GNOME Tweak Tool. In Ubuntu, install it with the command: In Fedora, getting your hands on this application is as simple as: Your distro may vary. Once the application is installed, look for the “Fonts” tab on the left-hand side. Here you will see the option to edit the default application font, title bar font, document font, monospace font, etc. Pick whatever font you with to change.
Unlike with the shell, the changes you make should occur automatically. Congratulations, your desktop now displays new fonts throughout. Feel free to apply this method to any fonts and/or sizes you wish to change.
You’re done!
If you feel that GNOME 3 consumes too much screen space by default, or simply don’t care for the ones that are included, changing the fonts in GNOME 3 is an easy fix. Changing Cantarell to a standard Sans font allows more content to be displayed in each window. This simple change may go a long ways towards making GNOME 3 work better for you.. If you run into any snags when following these instructions to change the fonts in GNOME 3, please speak up in the comments below.