10 种漂亮的 Linux 终端字体
终端 字体
![](/data/attachment/album/202305/15/182417zk1f1dou5fjkd5kt.jpg)



> 
> 为你的终端安装最好的字体，以改善外观和可读性，并让你的终端体验变得有趣。
> 
> 
> 


选择完美的字体对很多事情都至关重要，无论你是程序员、系统管理员，还是喜欢终端的 Linux 用户。


[更改终端字体](https://itsfoss.com/change-terminal-font-ubuntu/) 可帮助你实现以下目标：


* **美观的终端外观**
* **增强可读性**
* **减少眼睛疲劳**


听起来不错。但是如何选择完美的字体呢？这里有成百上千种选择。


对于初学者，你可以选择 **针对技术文档或编码优化的字体**，因为它们具有良好的可读性。接下来，你可以筛选出 **FOSS 项目**（如果这对你很重要）并检查这些 **字体是否可以在高分辨率显示器上很好地缩放**（根据你的需求）。


不要担心，为了让你有一个良好的开端，我们选择了一些最适合编码的字体，提供良好的可读性，同时看起来也不错。


### 1、Cascadia


![Cascadia font](/data/attachment/album/202305/15/182504kzwc22erwyimb62n.png)


[Cascadia](https://github.com/microsoft/cascadia-code) 是微软提供的一种字体，默认用于 [最好的开源编辑器](https://itsfoss.com/best-modern-open-source-code-editors-for-linux/) 之一 VSCode。


它包括编码连字支持，并提供三种变体：标准、等宽和支持嵌入式 PowerLine 符号的版本。


### 2、Fira Code


![Fira Code font](/data/attachment/album/202305/15/182504bchkohs1lj8pgdoe.png)


[Fira Code](https://github.com/tonsky/FiraCode) 是一种等宽字体，具有编码连字和 ASCII 支持。


它会定期进行微调以支持字母对和更好的标点符号输出。


### 3、Hack


![Hack font in terminal](/data/attachment/album/202305/15/182504eeyqvwhs59nse6zf.png)


[Hack](https://github.com/source-foundry/Hack) 是另一种为源代码量身定制的等宽字体。


你可以获得 ASCII、PowerLine 支持以及**粗体、斜体和粗斜体等常用样式**。


如果你注意到它的 GitHub 页面，它们为某些 Linux 发行版提供了改进字体渲染的说明。


### 4、Inconsolata


![Insconsolata font](/data/attachment/album/202305/15/182504xexdjefljdlkh8fa.png)


[Inconsolata](https://fonts.google.com/specimen/Inconsolata) 是一种清晰的等宽字体，具有出色的可读性。它是谷歌字体系列之一。


对于 [终端仿真器](https://itsfoss.com/linux-terminal-emulators/) 和编码用途，该字体提供了几种有用的样式。


### 5、Iosevka


![Iosevka font](/data/attachment/album/202305/15/182505qj53z8v5v53i8i13.png)


[Iosevka](https://github.com/be5invis/Iosevka) 是一种外观简洁的多功能开源字体，用于编写代码并在终端和技术文档中使用。


你可以从它的 GitHub 页面获取其他平台（包括 Linux）的安装说明。


### 6、JetBrains Mono


![JetBrains mono](/data/attachment/album/202305/15/182505xkmb869kbg6i8498.png)


[JetBrains Mono](https://github.com/JetBrains/JetBrainsMono) 是专为开发人员量身定制的自由开源字体。


顾名思义，它是流行的开发者工具 [JetBrains](https://www.jetbrains.com/) 使用的默认字体。


### 7、Meslo NF


![Meslo NF font](/data/attachment/album/202305/15/182505pgxpy8sarnzghrrn.png)


Meslo NF 是一种可以在终端中很好地支持 ASCII 和图标的字体。


作为 GitHub 上 [Nerd Fonts](https://github.com/ryanoasis/nerd-fonts/) 集的一部分，它提供了用于编码和终端的漂亮字体。你可以在它的 [GitHub 发布页](https://github.com/ryanoasis/nerd-fonts/releases/tag/v3.0.0) 的资源列表中找到该字体。


它在 Zsh、Fish 和其他 Shell 中看起来很棒。


### 8、Monoid


![Monoid](/data/attachment/album/202305/15/182505a3tmzgwty73gqhj3.png)


[Monoid](https://larsenwork.com/monoid/) 是另一种旨在用于编码的开源字体。有通常的连字支持和深色浅色变体，它应该是终端的不错选择。


### 9、Ubuntu Monospace


![Ubuntu Monospace](/data/attachment/album/202305/15/182506fx6adeh93l3v1lt1.png)


我们都喜欢 Ubuntu 的默认字体 [Ubuntu Monospace](https://design.ubuntu.com/font)。它针对多种语言、高分辨率屏幕和良好的可读性进行了优化。


如果你已经使用 Ubuntu，则无需单独安装它。


### 10、SourceCode Pro


![SourceCode Pro](/data/attachment/album/202305/15/182506iqdcptqw5t2pptqq.png)


[Source Code Pro](https://github.com/adobe-fonts/source-code-pro) 很好地融合了一切需求。虽然它针对编码环境进行了优化，并由 Adobe 开发，但它也为终端提供了具体良好可读性和美观性。


### 如何安装这些字体？


你可以通过下载 TTF 或 OTF 文件轻松安装字体，然后双击它们以使用字体查看器打开它进行安装。


![Double click on the ttf file to install it](/data/attachment/album/202305/15/182506jy8vixu18a41nhay.png)


要同时安装多种字体，你可以在主目录中新建一个 `.fonts` 文件夹，并将字体文件放在那里。你可以查看我们关于 [安装新字体](https://itsfoss.com/install-fonts-ubuntu/) 的指南，了解更多详细信息。


### 更多自定义终端的方法


这里有一些自定义终端外观的 [方法](https://itsfoss.com/customize-linux-terminal/)。


还有一个有趣的 [工具](https://itsfoss.com/pywal/)，可以根据你的桌面墙纸自动更改终端的配色方案。多么酷啊！


? 名单上你最喜欢的是什么？你使用什么终端字体？


*（题图：MJ/e5ae0ee3-9ea2-4136-a000-8fe681480356）*




---


via: <https://itsfoss.com/fonts-linux-terminal/>


作者：[Ankush Das](https://itsfoss.com/author/ankush/) 选题：[lkxed](https://github.com/lkxed/) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

Picking the perfect font is crucial for many things, whether you are a programmer, system administrator, or a Linux user fond of the terminal.

[Changing the terminal font](https://itsfoss.com/change-terminal-font-ubuntu/) helps you achieve the following:

**An aesthetically pleasing look of your terminal****Enhances readability****Reduces eye strain**

Sounds good. But how can you choose the perfect font? There are hundreds and thousands of options out there.

For starters, you can select a **font optimized for technical documents or coding** because those have good readability. Next, you can filter **foss projects** (if that matters to you) and check if those **fonts scale well** with high-resolution monitors (per your requirements).

Fret not; to give you a head start, we have picked some of the best fonts fit for coding, offering good readability while also looking good at the same time.

## 1. Cascadia

![cascadia font](https://itsfoss.com/content/images/2023/05/cascadia.png)

[Cascadia](https://github.com/microsoft/cascadia-code) is a font by Microsoft, used by default for Visual Studio Code, one of the [best open-source code editors](https://itsfoss.com/best-modern-open-source-code-editors-for-linux/).

It includes coding ligature support and offers three variants: standard, mono, and a version supporting embedded powerline symbols.

## 2. Fira Code

![fira code font](https://itsfoss.com/content/images/2023/05/fira-code.png)

[Fira Code](https://github.com/tonsky/FiraCode) is a monospaced font with programming ligature and ASCII support.

It is regularly fine-tuned to support letter pairs and better punctuation output.

## 3. Hack

![hack font in terminal](https://itsfoss.com/content/images/2023/05/hack.png)

[Hack](https://github.com/source-foundry/Hack) is another monospaced font tailored for source codes.

You get ASCII, powerline support, and the usual styles for **bold, italic, and bold italic.**

If you notice its GitHub page, they provide instructions to improve the font rendering for certain Linux distributions.

## 4. Inconsolata

![insconsolata font](https://itsfoss.com/content/images/2023/05/inconsolata.png)

[Inconsolata](https://fonts.google.com/specimen/Inconsolata) is a clear monospace font tailored for great readability. You can find it as one of the options in the Google Font family.

The font offers several styles useful for [terminal emulators](https://itsfoss.com/linux-terminal-emulators/) and coding purposes.

## 5. Iosevka

![iosevka font](https://itsfoss.com/content/images/2023/05/Iosevka-.png)

[Iosevka](https://github.com/be5invis/Iosevka) is a clean-looking versatile open-source font built to write code and use in terminals and technical documents.

You can get installation instructions from its GitHub page for other platforms, including Linux.

## 6. JetBrains mono

![](https://itsfoss.com/content/images/2023/05/jetbrains-mono.png)

The free and open-source typeface is tailored for developers, i.e., [JetBrains Mono](https://github.com/JetBrains/JetBrainsMono).

As the name suggests, it is the default font used by the popular developer tools under [JetBrains](https://www.jetbrains.com).

## 7. Meslo NF

![meslo nf font](https://itsfoss.com/content/images/2023/05/mesloNF.png)

Meslo NF is a font that supports ASCII and icons well in the terminal.

A part of "[Nerd Fonts](https://github.com/ryanoasis/nerd-fonts/)" collection on GitHub, which features good-looking fonts for coding and terminal. You can find the font among the assets in its [GitHub releases](https://github.com/ryanoasis/nerd-fonts/releases/tag/v3.0.0) section.

It looks excellent in shells like Zsh, fish, and others. You can check out our article on lesser-known [Linux shells](https://itsfoss.com/shells-linux/) to explore others.

**Suggested Read 📖**

[Beyond Bash: 9 Lesser-Known Linux Shells and Their CapabilitiesYou probably already know about the popular shells like bash and zsh. Let us explore some interesting and unique shells.](https://itsfoss.com/shells-linux/)![](https://itsfoss.com/content/images/2023/01/lesser-known-shells.png)


![](https://itsfoss.com/content/images/2023/01/lesser-known-shells.png)

## 8. Monoid

![monoiosome](https://itsfoss.com/content/images/2023/05/moniosome.png)

[Monoid](https://larsenwork.com/monoid/) is another open-source font that aims to be useful for coding. With the usual ligature support and light-dark variants, it should be a nice choice for terminals.

## 9. Ubuntu Monospace

![ubuntu monospace](https://itsfoss.com/content/images/2023/05/ubuntu-monospace.png)

We all love Ubuntu's default font, i.e., [Ubuntu Monospace](https://design.ubuntu.com/font). It is optimized for many languages, high-resolution screens, and good readability.

You do not need to install it if you already use Ubuntu.

## 10. SourceCode Pro

![](https://itsfoss.com/content/images/2023/05/source-code-pro.png)

[Source Code Pro](https://github.com/adobe-fonts/source-code-pro) is a good mix of everything. While it is optimized for coding environments and developed by Adobe, it offers good readability and look-for terminals.

**Recommended Read 📖**

[Top 14 Terminal Emulators for Linux (With Extra Features or Amazing Looks)Want a terminal that looks cool or has extra features? Here are the best Linux terminal emulators you can get.](https://itsfoss.com/linux-terminal-emulators/)![](https://itsfoss.com/content/images/wordpress/2021/03/best-terminal-emulators.png)


![](https://itsfoss.com/content/images/wordpress/2021/03/best-terminal-emulators.png)

## How to Install These Fonts?

You can easily install a font by downloading the TTF or OTF file and then double-clicking on them to open it using Font Viewer to install.

![Double click on the ttf file to install it](https://itsfoss.com/content/images/2023/05/image-6.png)

To install multiple fonts simultaneously, you can make a new `.fonts`

folder in the home directory and put the font files there. You can check out our guide on [ installing new fonts](https://itsfoss.com/install-fonts-ubuntu/) for more detailed information.

[How to Install New Fonts in Ubuntu and Other Linux DistrosWondering how to install additional fonts in Ubuntu Linux? Here is a screenshot tutorial to show you how to easily install new fonts.](https://itsfoss.com/install-fonts-ubuntu/)![](https://itsfoss.com/content/images/wordpress/2015/01/Install-new-fonts-ubuntu.png)


![](https://itsfoss.com/content/images/wordpress/2015/01/Install-new-fonts-ubuntu.png)

## More ways to customize terminal

Here are a few more ways to customize the look and feel of your terminal.

[5 Tweaks to Customize the Look of Your Linux TerminalWant a beautiful-looking Linux terminal? Here are several ways to tweak the look and feel of your current terminal and make it look beautiful.](https://itsfoss.com/customize-linux-terminal/)![](https://itsfoss.com/content/images/wordpress/2021/02/linux-terminal-customization.jpg)


![](https://itsfoss.com/content/images/wordpress/2021/02/linux-terminal-customization.jpg)

Another interesting tool that automatically changes the color scheme of the terminal based on your desktop wallpaper. How cool is that!

[Automatically Change Color Scheme of Your Linux Terminal Based on Your WallpaperIf you are It’s FOSS newsletter subscriber, you already know that we have started a new ‘Terminal Tuesday’ series. In this, you’ll get to read about command line tools or tips/tricks to help you in the terminal. Terminal is not all about serious work, it can be](https://itsfoss.com/pywal/)![](https://itsfoss.com/content/images/wordpress/2020/08/pywal-linux.jpg)


![](https://itsfoss.com/content/images/wordpress/2020/08/pywal-linux.jpg)

💬*What is your favorite on the list? Do you have better suggestions? Do share your thoughts in the comments below.*