news 2026/5/26 8:40:10

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/5/25 14:37:34

二叉树,红黑树初学

二叉树、AVL 树和红黑树都是基于二叉搜索树(BST) 的数据结构,但在平衡性、实现复杂度和操作性能上有显著区别。以下是它们的核心差异与时间复杂度对比:一、基本定义类型定义是否自平衡普通二叉搜索树(BST)满…

作者头像 李华
网站建设 2026/5/26 4:52:31

基于springboot和vue框架的宠物用品商城系统的设计与实现_58s816sf

目录具体实现截图项目介绍论文大纲核心代码部分展示项目运行指导结论源码获取详细视频演示 :文章底部获取博主联系方式!同行可合作具体实现截图 本系统(程序源码数据库调试部署讲解)同时还支持java、ThinkPHP、Node.js、Spring B…

作者头像 李华
网站建设 2026/5/26 4:52:19

还在为3DMAX轮胎建模发愁?1分钟一个高质轮胎的秘诀在这里!

3DMAX轮胎生成器插件,是一款专为3dsMax设计、专注于快速生成高质量轮胎模型的脚本插件。其核心目标是帮助用户在制作车轮时快速获得结构合理、细节丰富的轮胎基础模型,尤其适合作为项目流程中的“领先优势”起点。该插件工作流程较为直观:用户…

作者头像 李华
网站建设 2026/5/26 4:53:26

想极致优化Windows,还得看这些 系统调教神器_优化小工具

给大家分享几款自己一直在用的 Windows 系统调教小工具,无论是 Windows 10 还是 Windows 11 用户,都能从中受益。 有系统优化需求的小伙伴,千万别错过,赶紧收藏下载! Windows系统调校 绿色版软件 这是一款绿色版软件&…

作者头像 李华
网站建设 2026/5/26 5:57:07

Java 拆分 PDF:使用 Spire.PDF for Java 轻松搞定

在日常的软件开发和数据处理中,PDF 文件因其跨平台、版式固定等特性,被广泛应用于文档传输和存储。然而,有时我们需要对大型 PDF 文档进行精细化管理,例如,将一个多页的合同拆分成单页以便逐页审批,或者从一…

作者头像 李华
网站建设 2026/5/26 4:56:41

零基础入门网络安全:3 个月合规实战路径 + 避坑指南(附真实案例)

零基础入门网络安全:3 个月合规实战路径 避坑指南(附真实案例) 作为一个从行政转行安全运维、如今主业 SRC 副业月入 1W 的过来人,深知零基础学网安的迷茫 —— 怕学不会、怕踩法律坑、怕学完找不到出路。其实网安行业最不缺的…

作者头像 李华