当前位置: 首页 > news >正文

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.

http://www.jsqmd.com/news/93789/

相关文章:

  • 高通完成收购Ventana 加速布局RISC-V生态
  • 零基础入门:Flutter + 开源鸿蒙打造可视化儿童编程工具
  • 从零开始构建私有知识库:大模型训练全流程详解(含代码)
  • 基于springboot和vue框架的旅游攻略分享平台_0bv523sv
  • 【time-rs】DifferentVariant 错误类型详解(error/different_variant.rs)
  • 基于springboot和vue框架的流浪宠物领养平台_8pt61t0v
  • 《动手学深度学习》-36.1图像增强
  • 基于springboot和vue框架的选课系统与课程评价整合平台_9dg94p7s
  • 从零训练一个 ChatGPT:用 PyTorch 构建自己的 LLM 模型
  • 多智能体编队与避障:从理论到实践
  • Spring AI 核心架构解析:构建企业级 AI 应用的 Java 新范式
  • 2025年靠谱的隧道风筒布供应商排名:有实力的生产商与技术强 - myqiye
  • 还在为3DMAX轮胎建模发愁?1分钟一个高质轮胎的秘诀在这里!
  • 第52集科立分板机:科立分板机有哪些型号
  • 2025年五大靠谱印刷橡皮布供应商推荐,济南国创橡皮布反馈怎 - 工业推荐榜
  • 4MB 轻量化神器!PaintTool SAI Ver2024 二次元插画必备下载安装教程
  • 基于STM32的温度PID控制系统实现
  • 2025年实验室排风装置生产厂家权威推荐榜单:实验室取材台‌/通风柜通风系统‌/走入式通风柜源头厂家精选 - 品牌推荐官
  • starrocks fe一直起不来因为catalog
  • 前端ue5后端计算集群的生物3d组织生产仿真平台的新的开发范式意义
  • 辞职转行学IT,学网络安全运维可以吗?
  • PyTorch 全面介绍
  • 小型项目必备:SpringBoot Actuator—埋点和监控
  • 零基础入门网络安全:3 个月合规实战路径 + 避坑指南(附真实案例)
  • HMSC联合物种分布模型在群落生态学中的贝叶斯统计分析应用
  • 云飞云智能共享云桌面:企业PLM/ERP/MES等系统管理的革新方案
  • 21、Docker在DevOps管道与大规模应用中的实践
  • 程序员搞钱新赛道:大模型开发全栈教程,小白也能30天速成!
  • 22、Docker Swarm 模式:从基础到实践
  • SpringBoot王者晋级之路:从零到一详解Spring Boot!