How To Install unifont on Ubuntu 18.04

In this tutorial we learn how to install unifont on Ubuntu 18.04. unifont is font with a glyph for each visible Unicode Plane 0 character

Introduction

In this tutorial we learn how to install unifont on Ubuntu 18.04.

What is unifont

unifont is:

This package is a convenient way to install the PCF bitmap version, PSF bitmap version, and the scalable TrueType outline version of “Unifont” (intended for general-purpose use) and “Unifont Sample” (which contains combining circles to use for illustration purposes). It also installs a copy of unifont.hex and related files in /usr/share/unifont.

GNU Unifont was designed to render something besides an empty box for each visible Unicode character in the Basic Multilingual Plane (BMP, or Plane 0). The BMP contains most of the world’s modern writing scripts. This font looks best at 12pt.

Complex fonts (such as Indic or Semitic scripts, where letters change shape depending on their position in a word, or such as Mongolian, which can be written vertically) will not render perfectly. The philosophy behind this font, though, is that anything meaningful is better than an empty box for an unknown glyph.

There are three methods to install unifont on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install unifont Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install unifont using apt-get by running the following command:

sudo apt-get -y install unifont

Install unifont Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install unifont using apt by running the following command:

sudo apt -y install unifont

Install unifont Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install unifont using aptitude by running the following command:

sudo aptitude -y install unifont

How To Uninstall unifont on Ubuntu 18.04

To uninstall only the unifont package we can use the following command:

sudo apt-get remove unifont

Uninstall unifont And Its Dependencies

To uninstall unifont and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove unifont

Remove unifont Configurations and Data

To remove unifont configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge unifont

Remove unifont configuration, data, and all of its dependencies

We can use the following command to remove unifont configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge unifont

References

Summary

In this tutorial we learn how to install unifont package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.