How to Install Fonts in Ubuntu Linux

Ubuntu ships with a solid collection of open-source fonts that cover most everyday needs. However, if you are a graphic designer working with client projects, a web developer previewing designs that specify particular typefaces, or someone transitioning from Windows or macOS, you will inevitably need to install additional custom fonts to ensure your documents and designs render correctly.

Linux supports the same TrueType (.ttf) and OpenType (.otf) font formats used by Windows and macOS, making font files universally compatible across operating systems. Installing them on Ubuntu is straightforward using either the graphical interface or the command line.

Where to Download Fonts

Before installing, you need font files. Several reputable sources offer free, high-quality fonts:

  • Google Fonts (fonts.google.com) — A massive library of open-source fonts used widely on the web. You can download individual font families as ZIP archives.
  • Font Squirrel (fontsquirrel.com) — Curated collection of commercially-licensed free fonts.
  • DaFont (dafont.com) — Large collection of decorative and artistic fonts, though licensing varies.
  • GitHub — Many open-source font projects host their releases on GitHub, including popular programming fonts like Fira Code, JetBrains Mono, and Cascadia Code.

Downloaded fonts typically come in ZIP archives. You will need to extract the archive first to access the individual .ttf or .otf files.

Method 1: Installing Fonts via the Graphical Interface (Font Viewer)

If you only have a few fonts to install, Ubuntu’s built-in Font Viewer application provides the easiest method:

  1. Download your desired font file and extract it if it is inside a ZIP archive. Ensure you have the raw .ttf or .otf file.
  2. Open your file manager (Files) and navigate to the extracted font file.
  3. Double-click on the font file. This will automatically launch the Font Viewer application, displaying a preview of the typeface with sample text at various sizes.
  4. In the top-right corner of the Font Viewer window, click the Install button.

The button text will change to “Installed” within a few seconds. The font is now available for your user account in applications such as LibreOffice, GIMP, Inkscape, and any other application that uses system fonts.

Note: Fonts installed via the Font Viewer are placed in ~/.local/share/fonts/ and are available only to your user account, not to other users on the same system.

Method 2: Installing Multiple Fonts Using the .fonts Directory

When you have a large number of fonts to install, clicking through the Font Viewer for each one is tedious. Instead, you can place them directly in your user fonts directory:

  1. Open the Files application and navigate to your Home folder.
  2. Press Ctrl + H to reveal hidden files and folders (those beginning with a dot).
  3. Look for a folder named .local/share/fonts. If it does not exist, create it. You can also use the older .fonts directory in your home folder.
  4. Copy or drag and drop all of your extracted .ttf and .otf files into this directory.

Ubuntu monitors this directory and will automatically register any fonts placed inside it. For the changes to take effect immediately in all running applications, rebuild the font cache:

fc-cache -f -v

The -f flag forces a complete rebuild, and -v provides verbose output so you can see which font directories are being scanned.

Method 3: Installing Fonts System-Wide via Terminal

If you want fonts available to all users on the system (useful for shared workstations or servers), install them to the system-wide font directory:

  1. Open your terminal (Ctrl + Alt + T).
  2. Create a directory for your custom fonts if it does not already exist:
    sudo mkdir -p /usr/local/share/fonts/custom
  3. Copy your font files to this directory:
    sudo cp ~/Downloads/*.ttf /usr/local/share/fonts/custom/
  4. Set the correct permissions:
    sudo chmod 644 /usr/local/share/fonts/custom/*.ttf
  5. Rebuild the system font cache:
    sudo fc-cache -f -v

All user accounts on the system will now have access to these fonts.

Method 4: Installing Microsoft Core Fonts

If you frequently collaborate with Windows users or need to open documents that use standard Microsoft fonts (Arial, Times New Roman, Verdana, Comic Sans, Courier New, etc.), you can install the Microsoft Core Fonts package:

  1. Open your terminal (Ctrl + Alt + T).
  2. Type the following command and press Enter:
    sudo apt install ttf-mscorefonts-installer
  3. Type your administrator password when prompted.
  4. During installation, a text-based End User Licence Agreement (EULA) screen will appear. Press Tab to highlight the <Ok> button, then press Enter.
  5. Use the arrow keys to select <Yes> to accept the licence agreement, and press Enter.

Once complete, rebuild the font cache to ensure all applications recognise the new fonts:

sudo fc-cache -f -v

How to Verify Installed Fonts

You can check whether a specific font has been installed correctly using the fc-list command:

fc-list | grep -i "font name"

For example, to check if Arial is installed:

fc-list | grep -i "arial"

If the font is installed, the output will display its file path and style variants (regular, bold, italic, etc.).

To see a complete list of all installed fonts:

fc-list | sort

How to Remove Fonts

To remove a user-installed font:

  1. Navigate to ~/.local/share/fonts/ (or ~/.fonts/).
  2. Delete the font file you want to remove.
  3. Rebuild the font cache:
    fc-cache -f -v

For system-wide fonts installed in /usr/local/share/fonts/, use sudo rm to delete the file, then rebuild the cache with sudo fc-cache -f -v.

Troubleshooting Common Issues

  • Font does not appear in applications: Run fc-cache -f -v after installing. Some applications (particularly LibreOffice and GIMP) may need to be restarted before newly installed fonts appear in their font lists.
  • Wrong font rendering: If fonts appear blurry or incorrectly rendered, check your font hinting settings. You can adjust these through GNOME Tweaks > Fonts if you have the GNOME Tweaks application installed (sudo apt install gnome-tweaks).
  • Font installed but not showing correct styles: Ensure you have installed all style variants (Regular, Bold, Italic, Bold Italic). Each variant is typically a separate .ttf or .otf file. Missing variants will cause applications to synthesise bold or italic styles, which often look poor.
  • Duplicate font warnings: If you install the same font in both the user directory and the system directory, the user-level version takes priority. Remove duplicates from one location to avoid confusion.

Installing custom fonts is a straightforward process that ensures your Ubuntu system can handle any typography requirement, whether for professional design work, document compatibility, or personal preference.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.