Ubuntu 20.04 — How to Install Fonts

On Ubuntu 20.04 Desktop, open a TTF (TrueType Font) or OTF (OpenType Font) file in Fonts and click Install to add it to your account. To organize several files at once or make the fonts available to other accounts, copy them to the appropriate font directory.

The steps here are for Ubuntu 20.04 Desktop. Canonical ended standard support for Ubuntu 20.04 LTS (Long Term Support) on May 31, 2025. If you still use this release, see Canonical’s page for the update options.

Canonical’s Ubuntu 20.04 support information

Open and install a font in the Fonts app

  1. Extract the archive if necessary, then find the .ttf or .otf file. Double-click it. If no preview appears, right-click the file and open it with the Fonts app.
  2. Click Install at the top of the preview. If the family includes separate regular, bold, or other styles, install each file you need.
  3. Check that the button changes to Installed. If your document editor is already running, close and reopen it. Select the family name from the preview in the editor’s font list and type a short sentence.

Install for your account from the terminal

The example copies ~/Downloads/Example.ttf. Replace it with the actual directory and filename. If a file with the same name already exists, cp -i asks before replacing it. If XDG_DATA_HOME is unset, the destination is ~/.local/share/fonts.

font_dir="${XDG_DATA_HOME:-$HOME/.local/share}/fonts"
mkdir -p "$font_dir" &&
  cp -i "$HOME/Downloads/Example.ttf" "$font_dir/" &&
  fc-cache -f "$font_dir"

Install for all local accounts

To share a font with other local accounts, use an account with administrative privileges and a dedicated directory such as /usr/local/share/fonts/custom. This example installs a readable copy and refreshes the font cache. If the destination already has a file of the same name, choose another filename or confirm that the existing file is the one you intend to replace.

sudo install -d -m 0755 /usr/local/share/fonts/custom &&
  sudo install -m 0644 "$HOME/Downloads/Example.ttf" /usr/local/share/fonts/custom/Example.ttf &&
  fc-cache -f /usr/local/share/fonts/custom

Ubuntu’s Fontconfig configuration manual

Check that the font is available

This command lists the file path and family names that Fontconfig recognizes. Replace Example.ttf with the filename you copied. If the command returns a match, check that the path is the one you expected and look for the reported family name in your app’s font list.

fc-list -f '%{file}\t%{family}\n' | grep -F -- 'Example.ttf'

If you get no match, check the location, extension, and file permissions, then run fc-cache -f. If the font appears in the terminal but not in the app, fully quit and reopen the app. Also check that the font covers the characters you want to type. To undo a manual installation, remove only the file you copied and refresh the cache again. Removing a system-wide file requires administrative privileges.

Ubuntu’s fc-list reference