[手动选题][tech]: 20230405.4 ️ Our favorite fonts for the Linux terminal.md

This commit is contained in:
六开箱 2023-04-08 11:48:25 +08:00
parent ed74d71b7c
commit 41467e7f56

View File

@ -0,0 +1,149 @@
[#]: subject: "Our favorite fonts for the Linux terminal"
[#]: via: "https://opensource.com/article/23/4/linux-terminal-fonts"
[#]: author: "Jim Hall https://opensource.com/users/jim-hall"
[#]: collector: "lkxed"
[#]: translator: " "
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
Our favorite fonts for the Linux terminal
======
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.
### 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.
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:
![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:
![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.
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.
![Command line][9]
Here's the font preview generated with [Fontpreview tool][10].
![Display of font A-Z and the numbers][11]
**—[Ricardo Gerardi][12]**
### 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:
![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.
**—[Chris Reynolds][15]**
### Monaco
At the moment, Monaco regular at 16 pt (so much better than 12 or 14 pt fonts).
**—[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".
![Two open terminals, one pink and one aqua blue][17]
**—[RachieVee][18]**
### 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.
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.
**—[Stephanie Brinley][20]**
### Fantasque Sans Mono
```
$ 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.
**—[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:
- Cursor shape is underline instead of a block
- Font is [Jetbrains Mono][24] Nerd Font Mono Medium 14
![Black terminal with blue text][25]
**—[Alan Formy-Duval][26]**
--------------------------------------------------------------------------------
via: https://opensource.com/article/23/4/linux-terminal-fonts
作者:[Jim Hall][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://opensource.com/users/jim-hall
[b]: https://github.com/lkxed/
[1]: https://fontsource.org/fonts/vt323
[2]: https://opensource.com/sites/default/files/2023-01/gnome-terminal1108%C3%97926.png
[3]: https://opensource.com/sites/default/files/2023-01/gnome-terminal-vt323848%C3%97661.png
[4]: https://opensource.com/users/jim-hall
[5]: https://fontsource.org/fonts/dejavu-mono
[6]: https://github.com/liberationfonts
[7]: https://opensource.com/users/greg-p
[8]: https://sourcefoundry.org/hack/
[9]: https://opensource.com/sites/default/files/2023-01/Geradi%201.png
[10]: https://github.com/sdushantha/fontpreview
[11]: https://opensource.com/sites/default/files/2023-01/fontpreview_default.png
[12]: https://opensource.com/users/rgerardi
[13]: https://rubjo.github.io/victor-mono/
[14]: https://opensource.com/sites/default/files/2023-01/reynolds1.png
[15]: https://opensource.com/users/jazzsequence
[16]: https://twitter.com/elvenjen
[17]: https://opensource.com/sites/default/files/2023-01/pink-blue.webp
[18]: https://opensource.com/users/rachievee
[19]: https://opensource.com/article/23/2/chatgpt-vs-community
[20]: https://opensource.com/users/sbrinley
[21]: https://github.com/belluzj/fantasque-sans
[22]: https://opensource.com/article/19/10/why-use-rxvt-terminal
[23]: https://opensource.com/users/seth
[24]: https://www.jetbrains.com/lp/mono/
[25]: https://opensource.com/sites/default/files/2023-01/alan.png
[26]: https://opensource.com/users/alanfdoss