Md Abu Musa
Posted on September 29, 2024
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
For other fonts, you can search for available font packages:
apt search fonts
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
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:
Download the Font: Download the font file from a trusted source.
Create a Fonts Directory: If you don’t have a
.fonts
directory in your home folder, create it:
mkdir -p ~/.fonts
-
Copy the Font File: Move the downloaded font file to the
.fonts
directory:
cp /path/to/downloaded/font.ttf ~/.fonts/
- Update Font Cache:
fc-cache -f -v
4. Using Font Manager
You can also use a graphical tool called Font Manager:
- Install Font Manager:
sudo apt install font-manager
- 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!
Posted on September 29, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.