翻译完成

This commit is contained in:
Taivas Jumala 2023-04-11 22:06:20 +08:00
parent 28dc87f255
commit d7545ddb23

View File

@ -7,42 +7,45 @@
[#]: publisher: " "
[#]: url: " "
Our favorite fonts for the Linux terminal
大家最喜欢的 Linux 终端字体
======
Terminal emulators came up as a topic for me recently, and it got me thinking: What's everyone's favorite terminal font?
最近,终端模拟器成为我的一个话题,它让我思考:大家最喜欢的终端字体是什么?
So I asked Opensource.com contributors to share what font they like to use. Here are their answers.
因此,我请 Opensource.com 的贡献者分享他们喜欢使用的字体。以下是他们的答案。
### VT323
I like to use a different font ([VT323][1]) in my GNOME Terminal than the font I use (Source Code Pro) in my programming editors or other apps that use a monospace font. I just like the look of the classic VT-style font.
我喜欢在我的 GNOME 终端中使用不同的字体([VT323][1]而不是在我的编程时用的编辑器或其他使用等宽字体的应用程序中使用的字体Source Code Pro。我只是喜欢经典的 VT 风格字体的外观。
Sometimes, I switch to the original IBM EGA font, because to my eye it looks really nice. But I associate EGA with DOS, and I associate VT323 with classic Unix terminals, so I use VT323 most of the time. Here's my screenshot of GNOME Terminal using VT323 as the monospace font:
有时,我会切换到原始的 IBM EGA 字体,因为在我眼里它看起来真的很漂亮。但是我把 EGA 和 DOS 联系在一起,把 VT323 和经典的 Unix 终端联系在一起,所以我大部分时间都用 VT323 。下面是我使用 VT323 作为等宽字体的 GNOME 终端的屏幕截图:
![gnome-terminal1108×926 output][2]
I set up the terminal using VT323 at 24 pt, which gives a nice big window. If I'm going to bring up a terminal window, I want to really use it to do real work, not just do one thing and exit. I'm probably going to stay in that terminal window for a while, so it should be big and easy to see. I also prefer 80x25, because I'm an old DOS command line guy and 25 lines looks "right" to my eyes:
我设置 VT323 在终端的大小为 24pt使得终端界面呈现一个舒适的大窗口。如果我要打开一个终端窗口我想真正使用它来做实际的工作而不仅仅是做一件事然后退出。我可能会在那个终端窗口呆一段时间所以它应该很大很容易看到。我也更喜欢 80x25每行80个字符共25行大小的终端因为我是一个老 DOS 命令行的玩家家伙25行在我看来是「正确的」
![preference profile screen - text appearance][3]
**—[Jim Hall][4]**
### Monospaced fonts
### 等宽的字体
I don't know that I have a specific font that I use. I usually use either [DejaVu][5] or [Liberation][6] Mono. I like monospaced fonts because they're easier to read. Even then, I don't want the letters to be too close together. The main thing is being able to tell a small "L" from the number 1, Q from O, and so on. It's also nice to have all special characters stand out clearly.
我不认为我只使用某一个特别的字体。我通常使用 [DejaVu][5] 或 [Liberation][6]。我喜欢等宽字体,因为它们更容易阅读。即使这样,我也不希望字母靠得太近。最主要的是能够区分数字 1 和小写的'l'O 和 Q 等等。所有特殊字符都能清楚地显示出来也很好。
我也喜欢让字体和背景之间有良好的对比度,所以我将背景设置为黑色,字符设置为白色。
I also like a good contrast between the font and background, so I set the background to black and characters to white.
**—[Greg Pittman][7]**
### Hack
I like to use monospaced fonts, particularly for the terminal and coding because they're easier to read. I've been using the [Hack][8] font family for years. It provides a nice monospace font combined with additional glyphs and Powerline characters that I can use to display status on the command line.
我喜欢使用等宽字体,特别是在终端和代码编辑器中,因为它们更容易阅读。我使用 [Hack][8] 字族已经很多年了。它提供了一个很好的等宽字体,并提供了额外的字形和 Powerline 支持,我可以用它们在命令行上提供一些状态信息。
![Command line][9]
Here's the font preview generated with [Fontpreview tool][10].
这是用 [Fontpreview tool][10] 工具生成的字体预览。
![Display of font A-Z and the numbers][11]
@ -50,27 +53,26 @@ Here's the font preview generated with [Fontpreview tool][10].
### Victor Mono
I've been using [Victor Mono][13] for both my terminal and IDE for a few years. It's perhaps a bit of an acquired taste, because the italic characters are in a monospace cursive script. I like this because code comments have a distinct look that's noticeably different from the rest of the code. Here's what it looks like in a terminal:
我已经在我的终端和IDE中使用 [Victor Mono][13] 好几年了。斜体结合等宽的手写体可能不是一开始就会喜欢上的,我喜欢这样,因为代码注释有一个独特的外观,与代码的其余部分明显不同。下面是它在终端中的样子:
<!-- acquired taste 不是很好翻译允许的话我希望文中用括号补充aquired taste-->
![terminal font is italic characters in a monospace cursive script][14]
I also use the Solarized Dark color scheme for both my IDE and the terminal. If I could, anything work or code related would all use the same color scheme, and the same fonts, so it all looks uniform. I've gone through various fonts over the years, but I always try to use the same thing in my terminal as in my IDE.
我还为 IDE 和终端使用了 Solarized Dark 配色方案。如果可以的话,任何与工作或代码相关的东西都将使用相同的配色方案和相同的字体,所以一切看起来都是统一的。这些年来,我已经使用了各种字体,但我总是试图在我的终端中使用与 IDE 中相同的字体。
**—[Chris Reynolds][15]**
### Monaco
At the moment, Monaco regular at 16 pt (so much better than 12 or 14 pt fonts).
目前Monaco 常规字重 16pt 大小。(比 12 或是 14pt 大小好多了。)
**—[Jenny Panighetti][16]**
### Keeping it pretty in pink
### 用粉红色来装点
This reminds me of the time I pranked the other devs on my team by making all of their terminals pink (I was the only woman). It was like a baby pink background with hot pink text.
这让我想起了有一次我把团队里的其他开发者的终端都做成了粉红色(我是里面唯一的女性)。一个婴儿粉的背景与深粉红色的文字的搭配。
I like to make my personal terminals pretty, but for work I leave it white on black and just make the font around 16 pt because I appreciate the larger font size.
I just leave my terminal set to SF Mono font, but I make it bolder and bump it up a few points so I can see it better. My favorite colors to use are pink or a nice aqua blue color. I also like the default style the terminal has, called "Novel".
我总是把我的终端设置为 SF Mono但我把它加粗并凹凸了几个点以便我可以更好地看到它。我最喜欢的颜色是粉红色或漂亮的水蓝色。我也喜欢终端的默认风格叫做 "Novel"。
![Two open terminals, one pink and one aqua blue][17]
@ -78,11 +80,12 @@ I just leave my terminal set to SF Mono font, but I make it bolder and bump it u
### Let's ask ChatGPT
For the heck of it, I decided to ask [ChatGPT][19]. Here was its response:
> As a language model, I do not have personal preferences or the ability to have a favorite font. However, some popular terminal fonts include Monospace, Consolas, and Inconsolata. These fonts are popular because they are easy to read, have clear distinctions between different characters, and are highly legible even at small font sizes. Additionally, they are designed to work well with a variety of different operating systems and terminals, making them versatile choices for developers and users alike.
为了这个问题,我决定问 [ChatGPT][19]。以下是它的回答:
I generated this text in part with GPT-3, OpenAI's large-scale language-generation model. Upon generating draft language, the author reviewed, edited, and revised the language to my own liking and takes ultimate responsibility for the content of this publication.
> 作为一个语言模型,我没有个人偏好,也没有能力拥有一种最喜欢的字体。但是,一些流行的终端字体包括 Monospace、Consolas 和 Inconsolata。这些字体很受欢迎因为它们易于阅读不同字符之间有明显的区别即使在小字体大小下也非常清晰。此外它们被设计为适配在各种不同的操作系统和终端中得到更好的呈现使它们成为开发人员和用户的通用选择。
我使用GPT-3生成了这篇文章GPT-3 是 OpenAI 的大规模语言生成模型。在生成草稿后,作者根据自己的喜好审查、编辑和修改了文字以符合我个人的喜好,并对本出版物的内容承担最终责任。
**—[Stephanie Brinley][20]**
@ -93,16 +96,16 @@ $ grep font ~/.Xdefaults
URxvt*font: xft:FantasqueSansMono-Regular:pixelsize=12:antialias=true
```
I don't remember when I settled on [Fantasque Sans Mono][21], but I guess it's been my default for the past 8 years now, both in [Rxvt][22] and Konsole. I don't know what font I'm using in my GNOME terminal. Probably whatever the default is on GNOME.
我不记得我是什么时候决定使用 [Fantasque Sans Mono][21] 的,但我想这是我过去 8 年来的默认选择,无论是在 [Rxvt][22] 还是 Konsole。我不知道我在 GNOME 终端中使用的是什么字体。可能是 GNOME 上的默认字体。
**—[Seth Kenlon][23]**
### Jetbrains Mono
Lately, I have Tilix set as my default terminal. My Tilix config has similar settings to what Jim Hall uses. The few differences are:
最近,我将 Tilix 设置为默认终端。我的 Tilix 配置与 Jim Hall 使用的设置类似。几个不同点是:
- Cursor shape is underline instead of a block
- Font is [Jetbrains Mono][24] Nerd Font Mono Medium 14
- 光标形状是下划线而不是块
- 字体是 [Jetbrains Mono][24] Nerd Font Mono Medium 14
![Black terminal with blue text][25]
@ -114,7 +117,7 @@ via: https://opensource.com/article/23/4/linux-terminal-fonts
作者:[Jim Hall][a]
选题:[lkxed][b]
译者:[译者ID](https://github.com/译者ID)
译者:[Taivas Jumala](https://github.com//Taivasjumala)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出