DEV Community

Cover image for Installing Fonts on Ubuntu
Md Abu Musa
Md Abu Musa

Posted on

4

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!

Image of AssemblyAI tool

Challenge Submission: SpeechCraft - AI-Powered Speech Analysis for Better Communication

SpeechCraft is an advanced real-time speech analytics platform that transforms spoken words into actionable insights. Using cutting-edge AI technology from AssemblyAI, it provides instant transcription while analyzing multiple dimensions of speech performance.

Read full post

Top comments (1)

Collapse
 
lucasmasaba profile image
Khusiima Luke Masaba

Thank you

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay