Merge pull request #29383 from geekpi/translating

translated
This commit is contained in:
geekpi 2023-05-15 08:51:43 +08:00 committed by GitHub
commit 74d73d1b43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 165 additions and 163 deletions

View File

@ -1,163 +0,0 @@
[#]: subject: "10 Beautiful Fonts for Your Linux Terminal"
[#]: via: "https://itsfoss.com/fonts-linux-terminal/"
[#]: author: "Ankush Das https://itsfoss.com/author/ankush/"
[#]: collector: "lkxed"
[#]: translator: "geekpi"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
10 Beautiful Fonts for Your Linux Terminal
======
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][1] 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][2]
[Cascadia][3] is a font by Microsoft, used by default for Visual Studio Code, one of the [best open-source code editors][4].
It includes coding ligature support and offers three variants: standard, mono, and a version supporting embedded powerline symbols.
### 2. Fira Code
![fira code font][5]
[Fira Code][6] 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][7]
[Hack][8] 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][9]
[Inconsolata][10] 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][11] and coding purposes.
### 5. Iosevka
![iosevka font][12]
[Iosevka][13] 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
![][14]
The free and open-source typeface is tailored for developers, i.e., [JetBrains Mono][15].
As the name suggests, it is the default font used by the popular developer tools under [JetBrains][16].
### 7. Meslo NF
![meslo nf font][17]
Meslo NF is a font that supports ASCII and icons well in the terminal.
A part of "[Nerd Fonts][18]" collection on GitHub, which features good-looking fonts for coding and terminal. You can find the font among the assets in its [GitHub releases][19] section.
It looks excellent in shells like Zsh, fish, and others. You can check out our article on lesser-known [Linux shells][20] to explore others.
### 8. Monoid
![monoiosome][21]
[Monoid][22] 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][23]
We all love Ubuntu's default font, i.e., [Ubuntu Monospace][24]. 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
![][25]
[Source Code Pro][26] 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.
### 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][27]
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**][28] for more detailed information.
### More ways to customize terminal
Here are a few more ways to customize the look and feel of your terminal.
Another interesting tool that automatically changes the color scheme of the terminal based on your desktop wallpaper. How cool is that!
💬_What is your favorite on the list? Do you have better suggestions? Do share your thoughts in the comments below._
--------------------------------------------------------------------------------
via: https://itsfoss.com/fonts-linux-terminal/
作者:[Ankush Das][a]
选题:[lkxed][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/ankush/
[b]: https://github.com/lkxed/
[1]: https://itsfoss.com/change-terminal-font-ubuntu/
[2]: https://itsfoss.com/content/images/2023/05/cascadia.png
[3]: https://github.com/microsoft/cascadia-code?ref=itsfoss.com
[4]: https://itsfoss.com/best-modern-open-source-code-editors-for-linux/
[5]: https://itsfoss.com/content/images/2023/05/fira-code.png
[6]: https://github.com/tonsky/FiraCode?ref=itsfoss.com
[7]: https://itsfoss.com/content/images/2023/05/hack.png
[8]: https://github.com/source-foundry/Hack?ref=itsfoss.com
[9]: https://itsfoss.com/content/images/2023/05/inconsolata.png
[10]: https://fonts.google.com/specimen/Inconsolata?ref=itsfoss.com
[11]: https://itsfoss.com/linux-terminal-emulators/
[12]: https://itsfoss.com/content/images/2023/05/Iosevka-.png
[13]: https://github.com/be5invis/Iosevka?ref=itsfoss.com
[14]: https://itsfoss.com/content/images/2023/05/jetbrains-mono.png
[15]: https://github.com/JetBrains/JetBrainsMono?ref=itsfoss.com
[16]: https://www.jetbrains.com/?ref=itsfoss.com
[17]: https://itsfoss.com/content/images/2023/05/mesloNF.png
[18]: https://github.com/ryanoasis/nerd-fonts/?ref=itsfoss.com
[19]: https://github.com/ryanoasis/nerd-fonts/releases/tag/v3.0.0?ref=itsfoss.com
[20]: https://itsfoss.com/shells-linux/
[21]: https://itsfoss.com/content/images/2023/05/moniosome.png
[22]: https://larsenwork.com/monoid/?ref=itsfoss.com
[23]: https://itsfoss.com/content/images/2023/05/ubuntu-monospace.png
[24]: https://design.ubuntu.com/font?ref=itsfoss.com
[25]: https://itsfoss.com/content/images/2023/05/source-code-pro.png
[26]: https://github.com/adobe-fonts/source-code-pro?ref=itsfoss.com
[27]: https://itsfoss.com/content/images/2023/05/image-6.png
[28]: https://itsfoss.com/install-fonts-ubuntu/

View File

@ -0,0 +1,165 @@
[#]: subject: "10 Beautiful Fonts for Your Linux Terminal"
[#]: via: "https://itsfoss.com/fonts-linux-terminal/"
[#]: author: "Ankush Das https://itsfoss.com/author/ankush/"
[#]: collector: "lkxed"
[#]: translator: "geekpi"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
10 种漂亮的 Linux 终端字体
======
选择完美的字体对很多事情都至关重要,无论你是程序员、系统管理员,还是喜欢终端的 Linux 用户。
[更改终端字体][1]可帮助你实现以下目标:
- **美观的终端外观**
- **增强可读性**
- **减少眼睛疲劳**
听起来不错。但是如何选择完美的字体呢?这里有成百上千种选择。
对于初学者,你可以选择**针对技术文档或编码优化的字体**,因为它们具有良好的可读性。接下来,你可以过滤 **foss 项目**(如果这对你很重要)并检查这些 **字体是否可以在高分辨率显示器上很好地缩放**(根据你的要求)。
不要担心,为了让你有一个良好的开端,我们选择了一些最适合编码的字体,提供良好的可读性,同时看起来也不错。
### 1. Cascadia
![cascadia font][2]
[Cascadia][3] 是 Microsoft 的一种字体,默认用于 Visual Studio Code它是[最好的开源编辑器][4]之一。
它包括编程连字支持并提供三种变体标准、mono 和支持嵌入式 powerline 符号的版本。
### 2. Fira Code
![fira code font][5]
[Fira Code][6] 是一种等宽字体,具有编程连字和 ASCII 支持。
它会定期进行微调以支持字母对和更好的标点符号输出。
### 3. Hack
![hack font in terminal][7]
[Hack][8] 是另一种为源代码量身定制的等宽字体。
你可以获得 ASCII、powerline 支持以及**粗体、斜体和粗体斜体的常用样式**。
如果你注意到它的 GitHub 页面,它们会提供改进某些 Linux 发行版字体渲染的说明。
### 4. Inconsolata
![insconsolata font][9]
[Inconsolata][10] 是一种清晰的等宽字体,具有出色的可读性。你可以在 Google 字体系列中找到它作为选项之一。
该字体提供了几种对[终端仿真器][11]和编码目的有用的样式。
### 5. Iosevka
![iosevka font][12]
[Iosevka][13] 是一种外观简洁的多功能开源字体,用于编写代码并在终端和技术文档中使用。
你可以从它的 GitHub 页面获取其他平台(包括 Linux的安装说明。
### 6. JetBrains mono
![][14]
专为开发人员量身定制的免费和开源字体,即 [JetBrains Mono][15]。
顾名思义,它是流行的开发者工具 [JetBrains][16] 使用的默认字体。
### 7. Meslo NF
![meslo nf font][17]
Meslo NF 是一种在终端中很好地支持 ASCII 和图标的字体。
GitHub 上 “[Nerd Fonts][18]” 集合的一部分,它具有用于编码和终端的漂亮字体。你可以在它的 [GitHub 发布][19]页的资源中找到该字体。
它在 Zsh、fish 和其他 shell 中看起来很棒。你可以查看我们的[不太知名的 Linux shell][20]的文章来探索其他。
### 8. Monoid
![monoiosome][21]
[Monoid][22] 是另一种旨在对编码有用的开源字体。有了通常的连字支持和深色浅色变体,它应该是终端的不错选择。
### 9. Ubuntu Monospace
![ubuntu monospace][23]
我们都喜欢 Ubuntu 的默认字体,即 [Ubuntu Monospace][24]。它针对多种语言、高分辨率屏幕和良好的可读性进行了优化。
如果你已经使用 Ubuntu则无需安装它。
### 10. SourceCode Pro
![][25]
[Source Code Pro][26] 很好地融合了所有内容。虽然它针对编码环境进行了优化并由 Adobe 开发,但它提供了具体良好可读性和美观性的终端。
### 如何安装这些字体?
你可以通过下载 TTF 或 OTF 文件轻松安装字体,然后双击它们以使用字体查看器打开它进行安装。
![Double click on the ttf file to install it][27]
要同时安装多种字体,你可以在主目录中新建一个 `.fonts` 文件夹,并将字体文件放在那里。你可以查看我们关于[**安装新字体**][28]的指南,了解更多详细信息。
### 更多自定义终端的方法
这里有一些自定义终端外观的[方法][29]。
另一个有趣的[工具][30],可以根据你的桌面墙纸自动更改终端的配色方案。多么酷啊!
💬_名单上你最喜欢的是什么你有更好的建议吗请在下面的评论中分享你的想法。_
--------------------------------------------------------------------------------
via: https://itsfoss.com/fonts-linux-terminal/
作者:[Ankush Das][a]
选题:[lkxed][b]
译者:[geekpi](https://github.com/geekpi)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/ankush/
[b]: https://github.com/lkxed/
[1]: https://itsfoss.com/change-terminal-font-ubuntu/
[2]: https://itsfoss.com/content/images/2023/05/cascadia.png
[3]: https://github.com/microsoft/cascadia-code?ref=itsfoss.com
[4]: https://itsfoss.com/best-modern-open-source-code-editors-for-linux/
[5]: https://itsfoss.com/content/images/2023/05/fira-code.png
[6]: https://github.com/tonsky/FiraCode?ref=itsfoss.com
[7]: https://itsfoss.com/content/images/2023/05/hack.png
[8]: https://github.com/source-foundry/Hack?ref=itsfoss.com
[9]: https://itsfoss.com/content/images/2023/05/inconsolata.png
[10]: https://fonts.google.com/specimen/Inconsolata?ref=itsfoss.com
[11]: https://itsfoss.com/linux-terminal-emulators/
[12]: https://itsfoss.com/content/images/2023/05/Iosevka-.png
[13]: https://github.com/be5invis/Iosevka?ref=itsfoss.com
[14]: https://itsfoss.com/content/images/2023/05/jetbrains-mono.png
[15]: https://github.com/JetBrains/JetBrainsMono?ref=itsfoss.com
[16]: https://www.jetbrains.com/?ref=itsfoss.com
[17]: https://itsfoss.com/content/images/2023/05/mesloNF.png
[18]: https://github.com/ryanoasis/nerd-fonts/?ref=itsfoss.com
[19]: https://github.com/ryanoasis/nerd-fonts/releases/tag/v3.0.0?ref=itsfoss.com
[20]: https://itsfoss.com/shells-linux/
[21]: https://itsfoss.com/content/images/2023/05/moniosome.png
[22]: https://larsenwork.com/monoid/?ref=itsfoss.com
[23]: https://itsfoss.com/content/images/2023/05/ubuntu-monospace.png
[24]: https://design.ubuntu.com/font?ref=itsfoss.com
[25]: https://itsfoss.com/content/images/2023/05/source-code-pro.png
[26]: https://github.com/adobe-fonts/source-code-pro?ref=itsfoss.com
[27]: https://itsfoss.com/content/images/2023/05/image-6.png
[28]: https://itsfoss.com/install-fonts-ubuntu/
[29]:
[30]: