How To Install fonts-wqy-microhei on Ubuntu 18.04

In this tutorial we learn how to install fonts-wqy-microhei on Ubuntu 18.04. fonts-wqy-microhei is Sans-serif style CJK font derived from Droid

Introduction

In this tutorial we learn how to install fonts-wqy-microhei on Ubuntu 18.04.

What is fonts-wqy-microhei

fonts-wqy-microhei is:

WenQuanYi Micro Hei font family is a sans-serif style (also known as Hei, Gothic or Dotum among the Chinese/Japanese/Korean users) high quality CJK outline font. It was derived from “Droid Sans Fallback”, “Droid Sans” and “Droid Sans Mono” released by Google Corp. This font package contains two faces, “Micro Hei” and “Micro Hei Mono”, in form of a TrueType Collection (ttc) file. All the unified CJK Han glyphs, i.e. GBK Hanzi, in the range of U+4E00-U+9FC3 defined in Unicode Standard 5.1 are covered, with additional support to many other international languages such as Latin, Extended Latin, Hanguls and Kanas. The font file is extremely compact (~5M) compared with most known CJK fonts. As a result, it can be used for hand-held devices or embedded systems, or used on PC with a significantly small memory footprint. Because both font faces carry hinting and kerning instructions for Latin glyphs, they are excellent choices for desktop fonts.

There are three methods to install fonts-wqy-microhei 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 fonts-wqy-microhei Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install fonts-wqy-microhei

Install fonts-wqy-microhei Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install fonts-wqy-microhei using apt by running the following command:

sudo apt -y install fonts-wqy-microhei

Install fonts-wqy-microhei 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 fonts-wqy-microhei using aptitude by running the following command:

sudo aptitude -y install fonts-wqy-microhei

How To Uninstall fonts-wqy-microhei on Ubuntu 18.04

To uninstall only the fonts-wqy-microhei package we can use the following command:

sudo apt-get remove fonts-wqy-microhei

Uninstall fonts-wqy-microhei And Its Dependencies

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

sudo apt-get -y autoremove fonts-wqy-microhei

Remove fonts-wqy-microhei Configurations and Data

To remove fonts-wqy-microhei configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge fonts-wqy-microhei

Remove fonts-wqy-microhei configuration, data, and all of its dependencies

We can use the following command to remove fonts-wqy-microhei configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge fonts-wqy-microhei

References

Summary

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