news 2026/7/7 20:46:15

How to Quickly Install Multiple Fonts in Linux

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
How to Quickly Install Multiple Fonts in Linux

1. Overview

In this tutorial, we’ll learn how we can install fonts on a Linux machine. First, we’ll discuss how to install fonts for single and multiple users using the command-line. Then, we’ll tackle the Font Manager GUI utility that can assist in installing fonts on any Linux machine.

Finally, we’ll see how to install Google Fonts using Font Manager.

2. Manual Installation

On Linux, it’s much easier to install fonts manually by copying the respective font files into the fonts directory. Usually, most users prefer the TrueType fonts, but we can also install the OpenType font families.

2.1. Installing Fonts for Single User

For single users, we can copy the fonts to the~/.fontsdirectory. However, we can also put the fonts into the~/.local/share/fontsdirectory:

$ mkdir -p ~/.local/share/fontsCopy

Then, we can copy or move our fonts there:

$ cp ~/Downloads/{*.ttf,*.otf} ~/.local/share/fontsCopy

Additionally, if a font family contains a lot of fonts, thefontsdirectory can get quite messy. So,it’s usually a good practice to collect the related fonts into a directory and then copy the directory to the fonts directory.

Once our fonts are copied, we should rebuild the font cache using thefc-cachecommand so the fonts will be available for immediate use:

$ fc-cache -f -v Font directories: /home/hey/.local/share/fonts /usr/local/share/fonts /usr/share/fonts /home/hey/.fonts ... /home/hey/.local/share/fonts: caching, new cache contents: 5 fonts, 0 dirs /usr/local/share/fonts: skipping, no such directory ... fc-cache succeeded.Copy

Let’s understand the command:

  • -fforcesfc-cacheto scan up-to-date font files as well—overriding the timestamp checking
  • -vis used for verbose output

At this point, we can use the fonts without having to log out and log back in. However, some applications might not take effect without restarting.

2.2. Installing Fonts for Multiple Users

Installing fonts for multiple users follows the same method. However, we’ll need to put the fonts into the/usr/share/fontsdirectory:

$ sudo cp ~/Downloads/*.ttf /usr/share/fonts/TTFCopy

It’s a good practice to put the TrueType fonts inside the TTF directory and OpenType fonts inside the OTF directory.

As usual, let’s update the system-wide font cache using the-soption:

$ fc-cache -f -sCopy

2.3. Removing Fonts

We can remove the fonts by deleting the respective files in the fonts directory:

$ rm -f ~/.local/share/fonts/TTF/Fira-CodeCopy

Similarly, don’t forget to update the font cache after:

$ fc-cache -f -vCopy

3. Alternative: Font Manager

Font Manager is a GUI-based utility that helps in managing, analyzing, and viewing fonts without having to use the command-line.

3.1. Installation

On Ubuntu and other GNOME-based distributions, this utility should be installed out of the box. However, we can also install it from our distribution package repository under the canonical namefont-manager.

On Ubuntu-based distros, we can use apt:

$ sudo apt install -y font-managerCopy

On RHEL and Fedora-based distros, we can use yum:

$ sudo yum install -y font-managerCopy

3.2. Installing Multiple Fonts

Once Font Manager is installed, we can use it to install a bunch of fonts at the same time. On launch, we’ll be presented with the main view:

Now, we can press the “+” button on the top left to install new fonts:

Afterward, we can select multiple fonts to install:

Finally, we can click“Open”to install the selected fonts.

3.3. Removing Multiple Fonts

Similarly, we can remove multiple fonts by selecting the “” button on the top left corner:

Then, we can select the desired fonts to remove:

Finally, we can press the“Delete”button on the bottom to delete the selected fonts.

4. Extra: Installing Multiple Google Fonts

Google has one of the popular web font repositories that contains free fonts that we can use for both personal and commercial use.

However, it’s tedious to individually download, extract, and then manually install these fonts. Therefore, we can make this process quicker by using the Google Fonts feature of Font Manager.

In the main view of Font Manager, we can select the “G” button to list the available Google Fonts:

Then, we can select a font and click the “Downloading Family” button:

As we can see, it’s much easier to download and install Google Fonts without having to open up a browser and go through the process manually.

5. Conclusion

In this article, we discussed how we can install multiple fonts on a Linux machine. First, we learned the manual approach by copying the font files to the fonts directory. Then, we saw how we could achieve the same result using the handy GUI utility Font Manager.

Finally, we saw how we can easily install Google Fonts using Font Manager.

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/7/6 16:35:45

基于Mask R-CNN的香蕉叶黑斑病检测实战

1. 基于Mask R-CNN的香蕉叶黑斑病检测实战 🍌🔬 1.1. 研究背景与意义 香蕉作为全球重要的经济作物,其健康生长直接影响着农业经济效益。然而,黑斑病作为香蕉种植过程中的常见病害,若不及时防治,会导致叶片…

作者头像 李华
网站建设 2026/7/6 14:51:50

邦芒干货:给求职新人的8点建议

求职对于新人而言是一段充满挑战但也充满机遇的旅程。以下是一些核心建议,旨在帮助新人更有效地应对求职过程。1、时间管理与计划求职需要精心的时间规划。毕业生应将撰写简历、参加招聘活动、完成学业等任务纳入统一的时间表,并与用人单位的招聘节奏对齐…

作者头像 李华
网站建设 2026/7/7 7:10:05

插入排序算法实现(二分查找搜索版本)

我来为你写一个完整的C语言二分插入排序程序。 #include <stdio.h>// 二分查找插入位置 int binarySearch(int arr[], int left, int right, int key) {while (left < right) {int mid left (right - left) / 2;if (arr[mid] key) {return mid 1; // 保持稳定性&a…

作者头像 李华
网站建设 2026/7/6 13:56:38

攻防世界——BadProgrammer

拿到靶机首先抓包观察用的是什么服务器和框架发现服务器是Nginx&#xff0c;框架是PHP的express框架再用dirsearch扫一遍发现扫出了/static../意味着服务器存在配置错误&#xff0c;导致了目录遍历漏洞。当服务器配置不当时&#xff0c;特别是处理静态文件路径时&#xff0c;攻…

作者头像 李华
网站建设 2026/7/6 21:33:15

AI 搜索时代新战场:智汇GEO 如何重构品牌 AI 形象管理规则

AI 搜索已成为商业决策与消费选择的重要参考场景&#xff0c;品牌在 AI 生成结果中的能见度、信息准确性直接影响市场信任度与商业转化。当 AI 答案的话语权持续提升&#xff0c;品牌传统形象管理模式已难以应对动态变化的 AI 生态&#xff0c;而新榜智汇的出现&#xff0c;正为…

作者头像 李华
网站建设 2026/7/6 22:35:01

小红书Java面试被问:java创建对象有哪些方式?

在Java中&#xff0c;创建对象主要有以下五种核心方式&#xff0c;每种方式都有其适用场景&#xff1a; 1. 使用 new 关键字&#xff08;最常用&#xff09; java // 调用构造方法 Person person new Person(); 特点&#xff1a;直接调用类的构造器&#xff0c;触发类加载&a…

作者头像 李华