ObjectiveThe following article will explain how to install fonts on Ubuntu 18.04 Bionic Beaver Linux
Operating System and Software Versions
- Operating System: - Ubuntu 18.04 Bionic Beaver
RequirementsPrivileged access to your Ubuntu System as root or via
sudocommand is required.
- # - requires given linux commands to be executed with root privileges either directly as a root user or by use of
- $ - requires given linux commands to be executed as a regular non-privileged user
InstructionsThis article will use
Bitwise.ttfas a sample TrueType Font to be installed on Ubuntu 18.04 Desktop.
This font and many other fonts can be freely downloaded from the https://www.1001freefonts.com/ website.
Alternatively, you can use the bellow
unzipcommands to download and store
Bitwise.ttfinto your Downloads directory:
$ wget -O ~/Downloads/bitwise.zip https://www.1001freefonts.com/d/8190/bitwise.zip $ unzip -p ~/Downloads/bitwise.zip Bitwise.ttf > ~/Downloads/Bitwise.ttf $ rm ~/Downloads/bitwise.zipThe
Bitwise.ttffont should now be stored in your
$ ls ~/Downloads/ Bitwise.ttf $ file ~/Downloads/Bitwise.ttf /home/linuxconfig/Downloads/Bitwise.ttf: TrueType Font data, 10 tables, 1st "OS/2", 18 names, Macintosh, type 1 string, BitwiseRegular
Install Fonts using Font ManagerThe first and recommended approach to installing fonts on Ubuntu 18.04 Bionic Beaver is by use of Font Manager. Let's start by the Font Manager installation in case Font Manager is not already installed on your system.
Open up terminal and enter:
$ sudo apt update && sudo apt -y install font-managerOnce the installation of Font Manager is completed, start the font manager by searching the Start/Activities menu:
~/.local/share/fonts/user home directory. This means that the fonts will be accessible only to the user who actually performed the fonts installation.
Read the below section
Manual system-wide font installationon how to perform the system-wide font installation.
Manual user-space font installationIt is also possible to install new fonts manually by storing any new fonts into the
~/.fontsdirectory located within the user home directory.
The font installation procedure is quite simple as all what needs to be done in order to install new fonts is to copy the actual font file into
$ mkdir ~/.fonts $ cp ~/Downloads/Bitwise.ttf ~/.fontsAll done. If you need to sort your new installed fonts into a sub-directory feel free to do so. Any directory under
~/.fontswill be included recursively and fonts picked up by the system.
Manual system-wide font installationTo install fonts system-wide, thus to be available for any user on the system, simply use the
cpcommand to copy the desired font file into the
/usr/local/share/fontsdirectory or create a new directory with
/usr/local/share/fontsif you wish to sort your installed fonts into a sub-directory.
The following linux command will install a new font file
~/Downloads/Bitwise.ttfinto a new directory eg.
$ sudo mkdir /usr/local/share/fonts/sample $ sudo cp ~/Downloads/Bitwise.ttf /usr/local/share/fonts/sample/All done. No further configuration is required.