sodcalculator

10 Tech How-To

How to Install New Fonts on Ubuntu (Easy Steps)

Guide 10-44143 · Updated · Step by step

Installing new fonts on Ubuntu lets you customize documents, presentations, and your desktop with typefaces that aren’t included by default. This guide shows you how to add fonts for your user account only or system-wide, using both the graphical interface and the command line. No special tools are required—just your normal user account and, for system-wide installs, sudo access.

What You’ll Need

  • A font file in .ttf, .otf, or .ttc format (download from a reputable source like Google Fonts, Adobe Fonts, or the font foundry’s site).
  • For system-wide installation: sudo privileges (you’ll be prompted for your password).
  • A file manager (Files, the default on Ubuntu) or a terminal.

Step-by-Step

Method 1: Install Fonts for Your User (Graphical)

  1. Open the Files app (the folder icon in the dock or press Super and search “Files”).
  2. Navigate to the folder where your downloaded font files are (usually ~/Downloads).
  3. Select the font files you want to install. You can click one, then hold Ctrl and click others to select multiple.
  4. Right-click a selected file and choose Copy (or press Ctrl+C).
  5. In the left sidebar of Files, click Home (your home folder).
  6. Press Ctrl+H to show hidden files/folders.
  7. Look for a folder named .fonts. If it exists, open it. If not, right-click in the home folder, select New Folder, and name it exactly .fonts (with the leading dot).
  8. Open the .fonts folder, right-click an empty area, and choose Paste (or press Ctrl+V).
  9. Close and reopen any applications you want to use the font in (e.g., LibreOffice, GIMP). The font will now appear in their font lists.

Method 2: Install Fonts System-Wide (Graphical)

  1. Open Files and go to your Downloads folder (or wherever the fonts are).
  2. Select and copy the font files (Ctrl+C).
  3. In the left sidebar, click Other Locations at the bottom.
  4. Under On This Computer, double-click Computer.
  5. Navigate to usr → share → fonts.
  6. You may need to create a new folder here (e.g., myfonts) to keep things organized. Right-click an empty area and choose New Folder, then name it.
  7. Open the new folder, right-click an empty area, and choose Paste. You’ll be asked for your password to authenticate.
  8. Restart any open applications to see the fonts.

Method 3: Install Fonts Using the Terminal

  1. Open a terminal (Ctrl+Alt+T).
  2. For user-only installation, create the .fonts directory if it doesn’t exist:
    mkdir -p ~/.fonts
  3. Copy the font files into that directory:
    cp /path/to/your/fonts/*.ttf ~/.fonts/
    Replace /path/to/your/fonts/ with the actual path (e.g., ~/Downloads/).
  4. For system-wide installation, use sudo and copy to /usr/share/fonts (you may create a subfolder):
    sudo mkdir -p /usr/share/fonts/myfonts
    sudo cp /path/to/your/fonts/*.ttf /usr/share/fonts/myfonts/
  5. Update the font cache so the system recognizes the new fonts:
    fc-cache -f
  6. Verify the fonts are installed:
    fc-list | grep -i "fontname"
    Replace fontname with part of the font’s name (e.g., Roboto).

Common Mistakes

  • Forgetting the dot in .fonts: The folder must be named exactly .fonts (with a leading period). A folder named fonts (without the dot) won’t be recognized.
  • Not refreshing applications: After installing, you must close and reopen the application (or log out and back in) to see the new fonts. Some apps may need a full restart.
  • Installing to the wrong location: Putting fonts in ~/.fonts only affects your user. If you want all users to see them, you must use /usr/share/fonts (or /usr/local/share/fonts).
  • Copying compressed files: Fonts are often downloaded as .zip archives. You must extract the .ttf or .otf files before copying them. Right-click the zip and choose Extract Here.
  • Using the wrong file extension: Ubuntu supports .ttf, .otf, and .ttc. Some fonts come as .woff or .woff2—these are for web use and won’t work as system fonts.

Tips

  • To install multiple fonts at once, select all the files in the file manager and copy them together.
  • If you want to keep your fonts organized, create subfolders inside ~/.fonts (e.g., ~/.fonts/myfontfamily). Ubuntu will search recursively.
  • Use fc-list in the terminal to see all installed fonts. You can pipe it to grep to search for a specific name.
  • To remove a font, simply delete the file from the folder you placed it in. Then run fc-cache -f to update the cache.
  • If you’re using a font manager (like Font Manager from the Ubuntu Software Center), it can handle installation and previews for you, but the manual method works without extra software.

Troubleshooting

Font doesn’t appear in applications: First, close and reopen the application. If it still doesn’t show, check that the file is in the correct folder (run ls ~/.fonts to verify). Then run fc-cache -f in the terminal. If you installed system-wide, make sure you have permission to read the font files (they should be world-readable).

Font appears but looks wrong (e.g., boxes or missing glyphs): This usually means the font file is corrupted or incomplete. Try re-downloading the font from the official source. Also ensure you’re using the correct file format—some fonts have separate files for regular, bold, italic, etc.

Can’t copy to /usr/share/fonts: If you get a permission error, you may not have sudo access. Either ask the system administrator, or install the font only for your user using ~/.fonts.

Fonts installed but not showing in a specific app (like LibreOffice): Some applications cache font lists at startup. Fully quit the app (including any background processes) and restart it. If that fails, log out and log back in.

fc-cache command not found: This is rare, but if it happens, install fontconfig using sudo apt install fontconfig.

Frequently Asked Questions

Do I need to restart my computer after installing fonts?

No, a full restart is not required. Closing and reopening the application you’re using is enough. If fonts don’t show up, a logout/login cycle is the next step.

Can I install fonts from the Ubuntu Software Center?

Yes, you can install font packages (like fonts-roboto) from the Software Center, but for fonts you download from the web, the manual method described above is the way to go.

What’s the difference between installing for my user and system-wide?

User-installed fonts (in ~/.fonts) are only available to your account. System-wide fonts (in /usr/share/fonts) are available to all users on the machine. System-wide installation requires sudo privileges.

Can I use Google Fonts directly on Ubuntu?

Yes, you can download Google Fonts as .ttf files from the Google Fonts website and install them using the same steps. Alternatively, you can use the fonts-google-* packages from the Ubuntu repositories.

Will installing fonts affect system performance?

No, installing a few fonts has negligible impact. However, installing thousands of fonts can slow down font loading in some applications. It’s best to install only the fonts you actually need.

How do I uninstall a font I installed?

Simply delete the font file from the folder you placed it in (~/.fonts or /usr/share/fonts/myfonts). Then run fc-cache -f to update the font cache. The font will no longer be available.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →