Introduction

In this tutorial we will learn, how to add/install Ubuntu fonts in CentOS/Red Hat Linux. The Ubuntu fonts are very popular in typography. The Ubuntu fonts are funded by Canonical . Its wonderful design work and implementation has been taken care by Dalton Maag . To know more about Ubuntu Fonts, here is the link.

In this practical we will install Ubuntu fonts system wide but fonts can also be installed for an individual user

To add/install ubuntu fonts System Wide

Follow the given below steps to install Ubuntu Fonts system wide in Red Hat and CentOS Operating System. This method is applicable to other Red Hat based Operating System also.

We will install the Ubuntu Fonts in fontconfig and it will be applicable to System Wide.

Step 1: Login as a root else login as super user.

Download Ubuntu Fonts

Open the terminal and type below given command

cd /root
yum install wget (you can skip this step if wget is already installed)

wget https://assets.ubuntu.com/v1/0cef8205-ubuntu-font-family-0.83.zip

Create Fonts Directory If Doesn’t Exist

Check if the directory /usr/share/fonts exist. If the fonts directory do not exist,you can create yourself.

mkdir -p /usr/share/fonts

Extract Fonts Zipped File

Now unzip the downloaded Ubuntu fonts file

cd /root
yum install unzip

unzip 0cef8205-ubuntu-font-family-0.83.zip

Copy Fonts Family Directory

Now copy ubuntu-font-family-0.83 directory into /usr/share/fonts/

cp -rvf ubuntu-font-family-0.83 /usr/share/fonts/

Inside directory ubuntu-font-family,you can see many .ttf files . (Know about ttf)

[root@CentOS-server ubuntu-font-family-0.83]# ls -1
total 4120
CONTRIBUTING.txt
FONTLOG.txt
LICENCE-FAQ.txt
LICENCE.txt
README.txt
TRADEMARKS.txt
Ubuntu-B.ttf
Ubuntu-BI.ttf
Ubuntu-C.ttf
Ubuntu-L.ttf
Ubuntu-LI.ttf
Ubuntu-M.ttf
Ubuntu-MI.ttf
Ubuntu-R.ttf
Ubuntu-RI.ttf
Ubuntu-Th.ttf
UbuntuMono-B.ttf
UbuntuMono-BI.ttf
UbuntuMono-R.ttf
UbuntuMono-RI.ttf
copyright.txt
[root@CentOS-server ubuntu-font-family-0.80]#

Update Fonts Cache

Now run the fc-cache command. The fc-cache command build the information caches in directory.If you do not get any error then the fonts are successfully installed.

fc-cache -fv

You have more options with fc-cache command. for this run the command
fc-cache --help

[root@CentOS-server ~]# fc-cache --help
usage: fc-cache [-frsvVh] [--force|--really-force] [--system-only] [--verbose] [--version] [--help] [dirs]
Build font information caches in [dirs]
(all directories in font configuration by default).

  -f, --force          scan directories with apparently valid caches
  -r, --really-force   erase all existing caches, then rescan
  -s, --system-only    scan system-wide directories only
  -v, --verbose        display status information while busy
  -V, --version        display font config version and exit
  -h, --help           display this help and exit

End Notes

Ubuntu Font Family is also available in Google Fonts.

Important Note: It is important to note that Fontconfig has /etc/fonts/fonts.conf configuration file, which should not be edited by manually.

Learn more about Installing Ubuntu fonts for an individual user , you can visit to our another blog post link here.

Read Some More Articles

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.