news 2026/6/10 18:46:09

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/6/9 19:40:35

不得了!揭秘专业的固液混合电容厂家背后的行业秘诀!

不得了!揭秘专业的固液混合电容厂家背后的行业秘诀! 行业痛点分析 固液混合电容作为电子领域的关键组件,在众多应用场景中发挥着重要作用,但当前该领域面临着诸多技术挑战。一方面,高温稳定性不佳是一大难题。在高温…

作者头像 李华
网站建设 2026/6/10 13:50:01

CAIE认证上海报考指南:当职业理想遭遇AI现实,如何破局?

早高峰的上海地铁里,刷着招聘软件的人越来越多地看到一个刺眼的要求——“熟悉AI工具者优先”。而在写字楼的格子间里,不少人也正悄悄犯愁:那些听起来很酷的AI技能,到底该怎么系统地去学?又怎么向老板证明自己真的会了…

作者头像 李华
网站建设 2026/6/10 14:09:43

uniApp的学习与思考

移动端开发 IOS 安卓 web 小程序等缺点&#xff1a; 一对多&#xff1a;性能差 上架可能会有问题 中小公司 优点&#xff1a;一套代码可以发布到 Ios 安卓 web 小程序 虽然要走条件编译Hbudder开发<ifedf h5> <view> h5展示<ennif > <view> 小程序展示…

作者头像 李华
网站建设 2026/6/10 15:24:15

基于STM32的温度PID控制系统实现

一、系统架构设计 1.1 核心模块选型模块推荐型号关键参数温度传感器DS18B2012位分辨率&#xff0c;0.5℃精度执行机构TEC1-12706最大温差60℃&#xff0c;电流6A电压基准REF30303.0V0.05%精度电流检测ACS712ELC-055A量程&#xff0c;1.5%误差 二、硬件接口实现 2.1 传感器接口电…

作者头像 李华
网站建设 2026/6/9 19:03:13

君耀压敏电阻25D系列的高性能过压保护解决方案

君耀压敏电阻25D系列是君耀&#xff08;Brightking&#xff09;推出的高性能压敏电阻产品&#xff0c;广泛应用于电子电路的过压保护。该系列产品以其快速响应、高浪涌电流承受能力以及广泛的电压范围而备受市场青睐。可以说&#xff0c;君耀压敏电阻25D系列是您的高性能过压保…

作者头像 李华