Installing Fonts on Ubuntu

abstractmusa

Md Abu Musa

Posted on September 29, 2024

Installing Fonts on Ubuntu

If you want to install fonts like Times New Roman, Fira Code, or other fonts on Ubuntu, here’s how you can do it:

1. Using the Terminal

You can install fonts directly via the terminal. For example, to install Fira Code:

sudo apt update
sudo apt install fonts-firacode
Enter fullscreen mode Exit fullscreen mode

For other fonts, you can search for available font packages:

apt search fonts
Enter fullscreen mode Exit fullscreen mode

2. Installing Microsoft Fonts (e.g., Times New Roman)

To install Microsoft TrueType core fonts (which include Times New Roman), you can do the following:

sudo apt install ttf-mscorefonts-installer
Enter fullscreen mode Exit fullscreen mode

During installation, you may need to accept the End User License Agreement (EULA).

3. Installing Fonts Manually

If you have a specific font file (like .ttf or .otf), you can install it manually:

  1. Download the Font: Download the font file from a trusted source.

  2. Create a Fonts Directory: If you don’t have a .fonts directory in your home folder, create it:

   mkdir -p ~/.fonts
Enter fullscreen mode Exit fullscreen mode
  1. Copy the Font File: Move the downloaded font file to the .fonts directory:
   cp /path/to/downloaded/font.ttf ~/.fonts/
Enter fullscreen mode Exit fullscreen mode
  1. Update Font Cache:
   fc-cache -f -v
Enter fullscreen mode Exit fullscreen mode

4. Using Font Manager

You can also use a graphical tool called Font Manager:

  1. Install Font Manager:
   sudo apt install font-manager
Enter fullscreen mode Exit fullscreen mode
  1. Open Font Manager and use it to install new fonts easily by dragging and dropping font files.

Verifying Installed Fonts

You can check if the fonts are installed by opening a text editor or terminal and using the font selection options available there.

That’s it! You should now have the desired fonts installed on your Ubuntu system. Let me know if you need further assistance!

💖 💪 🙅 🚩
abstractmusa
Md Abu Musa

Posted on September 29, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related