mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-23 21:20:42 +08:00
Translated
This commit is contained in:
parent
eb93624cfd
commit
176f6d1ea8
@ -1,109 +0,0 @@
|
||||
[#]: subject: "How to change Ubuntu Terminal Font and Size [Beginner’s Tip]"
|
||||
[#]: via: "https://itsfoss.com/change-terminal-font-ubuntu/"
|
||||
[#]: author: "Ankush Das https://itsfoss.com/author/ankush/"
|
||||
[#]: collector: "lujun9972"
|
||||
[#]: translator: "robsean"
|
||||
[#]: reviewer: " "
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
|
||||
How to change Ubuntu Terminal Font and Size [Beginner’s Tip]
|
||||
======
|
||||
|
||||
If you are spending a lot of time using the terminal on Ubuntu, you may want to adjust the font and size to get a good experience.
|
||||
|
||||
Changing the font is one of the simplest but most visual way of [Linux terminal customization][1]. Let me show you the detailed steps for changing the terminal fonts in Ubuntu along with some tips and suggestions on font selection.
|
||||
|
||||
_**Note:**_ _The steps should be the same for most other [Linux terminal emulator][2] but the way you access the option can differ._
|
||||
|
||||
### Change Ubuntu Terminal font and size using GUI
|
||||
|
||||
**Step 1.** [Launch the terminal on your Ubuntu][3] system by using Ctrl+Alt+T keys.
|
||||
|
||||
**Step 2.** Head to the “**Preferences**” option that you can find when you click on the menu.
|
||||
|
||||
![][4]
|
||||
|
||||
You can also perform a right-click anywhere on the terminal to access the option as shown below.
|
||||
|
||||
![][5]
|
||||
|
||||
**Step 3.** Now, you should be able to access the settings for the terminal. By default, there will be an unnamed profile. This is the default profile. **I suggest creating a new profile** so that your changes do not impact the default settings.
|
||||
|
||||
![][6]
|
||||
|
||||
**Step 4**. To change the font, you need to enable the “**Custom font**” option and then click on “**Monospace Regular**”
|
||||
|
||||
![][7]
|
||||
|
||||
It will show a list of fonts available for selection.
|
||||
|
||||
![][8]
|
||||
|
||||
Here, you get a quick preview of the font at the bottom of the font listing and also the ability to tweak the font size of your Ubuntu terminal.
|
||||
|
||||
By default, it uses a size of **12** for the font and **Ubuntu mono** style.
|
||||
|
||||
**Step 5**. Finally, you can search for your preferred font style and hit “**Select**” to finalize it after looking at the preview and adjusting the font size.
|
||||
|
||||
![][9]
|
||||
|
||||
That’s it. You have successfully changed the fonts. See the changes in the image below. Move the slider to see the difference.
|
||||
|
||||
![Ubuntu terminal font change][10]
|
||||
|
||||
#### Want to Customize the Look of your Linux Terminal?
|
||||
|
||||
Check out our detailed article on some terminal customization tips and tricks.
|
||||
|
||||
[Linux Terminal Tweaks][1]
|
||||
|
||||
### Tips on getting new fonts for Ubuntu terminal
|
||||
|
||||
You can download fonts from the internet in TTF file format and [easily install these new fonts in Ubuntu][11] by double-clicking the TTF file.
|
||||
|
||||
![][12]
|
||||
|
||||
You should open a new terminal window to load the newly installed fonts.
|
||||
|
||||
However, keep in mind that **Ubuntu will not show ALL the newly installed fonts in the terminal**. Why? Because the terminal is designed to use monospaced fonts. Fonts that have letters too close to each other may look weird. Some fonts do not offer proper clarity between the alphabet O and the number 0. Similarly, you may face issues in differentiating the lowercase l and i.
|
||||
|
||||
This is why you’ll see the available fonts in the terminal are often have ‘mono’ in their name.
|
||||
|
||||
Overall, there can be plenty of readability issues that could create more confusion. Hence, it is best to select a font that does not make the terminal hard to read.
|
||||
|
||||
You should also check if a font looks good/weird when you increase/decrease the size of the font to ensure that you do not have a problem when customizing the look of your terminal.
|
||||
|
||||
### Font suggestions for terminal customization
|
||||
|
||||
Free mono and Noto mono are some of the good fonts available from the default list of font selections to apply on your terminal.
|
||||
|
||||
You can try [installing new fonts in Linux][11] like **JetBrains Mono**, and **Robo Mono**, Larabiefont, Share Tech Mono and more from Google Fonts and other sources.
|
||||
|
||||
_What font style/size do you prefer to use with the Ubuntu terminal? Let us know in the comments below!_
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://itsfoss.com/change-terminal-font-ubuntu/
|
||||
|
||||
作者:[Ankush Das][a]
|
||||
选题:[lujun9972][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/lujun9972
|
||||
[1]: https://itsfoss.com/customize-linux-terminal/
|
||||
[2]: https://itsfoss.com/linux-terminal-emulators/
|
||||
[3]: https://itsfoss.com/open-terminal-ubuntu/
|
||||
[4]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2021/09/terminal-preference.png?resize=800%2C428&ssl=1
|
||||
[5]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2021/09/terminal-right-click-menu.png?resize=800%2C341&ssl=1
|
||||
[6]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2021/09/ubuntu-terminal-preference-option.png?resize=800%2C303&ssl=1
|
||||
[7]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2021/09/enable-font-change-ubuntu-terminal.png?resize=798%2C310&ssl=1
|
||||
[8]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2021/09/monospace-font-default.png?resize=800%2C651&ssl=1
|
||||
[9]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2021/09/ubuntu-custom-font-selection.png?resize=800%2C441&ssl=1
|
||||
[10]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2021/09/ubuntu-terminal-font-2.png?resize=723%2C353&ssl=1
|
||||
[11]: https://itsfoss.com/install-fonts-ubuntu/
|
||||
[12]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/12/install-new-fonts-ubuntu.png?resize=800%2C463&ssl=1
|
@ -0,0 +1,109 @@
|
||||
[#]: subject: "How to change Ubuntu Terminal Font and Size [Beginner’s Tip]"
|
||||
[#]: via: "https://itsfoss.com/change-terminal-font-ubuntu/"
|
||||
[#]: author: "Ankush Das https://itsfoss.com/author/ankush/"
|
||||
[#]: collector: "lujun9972"
|
||||
[#]: translator: "robsean"
|
||||
[#]: reviewer: " "
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
|
||||
如何更改 Ubuntu 的终端的字体和大小 [初学者提示]
|
||||
======
|
||||
|
||||
如果你在 Ubuntu 上使用终端的时间很长,你可能会希望调整终端的字体和大小以获取一种良好的体验。
|
||||
|
||||
更改字体是一种最简单但最直观的[Linux 的终端自定义][1] 的方法。让我向你展示在 Ubuntu 中更改终端的字体的详细步骤,以及一些字体选择的提示和建议。
|
||||
|
||||
_**注意:**_ _这些步骤可能也对大多数的其它的 [Linux 的终端模拟器][2] 有效,但是你访问选项的方法可能会有所不同。_
|
||||
|
||||
### 使用 GUI 更改 Ubuntu 的终端的字体和大小
|
||||
|
||||
**步骤 1.** [在 Ubuntu 中打开终端窗口][3] ,方法是按 Ctrl+Alt+T 组合键。
|
||||
|
||||
**步骤 2.** 打开终端“**首选项**”。你可以单击菜单按钮来找到它。
|
||||
|
||||
![][4]
|
||||
|
||||
你也可以右击终端屏幕的任意位置来访问首选项,如下图所示。
|
||||
|
||||
![][5]
|
||||
|
||||
**步骤 3.** 现在,你应该能够访问针对终端的设置。在默认情况下,在这里将会有一个未命名的配置文件。这就是默认的配置文件。**我建议创建一个新的配置文件**,以便你的更改不会影响默认的设置。
|
||||
|
||||
![][6]
|
||||
|
||||
**步骤 4.** 为了更改字体,你需要启用“**自定义字体**” 选项,接下来单击 “**Monospace Regular**” 。
|
||||
|
||||
![][7]
|
||||
|
||||
它将显示针对这个选项的可用的一个字体列表。
|
||||
|
||||
![][8]
|
||||
|
||||
在这里,你可以在字体列表的底部快速预览字体,也可以调整你的 Ubuntu 的终端的字体大小。
|
||||
|
||||
在默认情况下,字体的大小是 **12** ,字体的样式是 **Ubuntu mono** 。
|
||||
|
||||
**步骤 5.** 最后,你也可以搜索你喜欢的字体样式,并在查看预览和调整字体大小后,通过点击 “**选择**” 来完成更改字体。
|
||||
|
||||
![][9]
|
||||
|
||||
这就是全部的步骤。你已经成功地更改字体。在下面的图像中查看更改。移动划款来查看不同点。
|
||||
|
||||
![Ubuntu terminal font change][10]
|
||||
|
||||
#### 希望自定义你的 Linux 的终端的外貌?
|
||||
|
||||
查看我们关于一些终端自定义提示和技巧的详细的文章。
|
||||
|
||||
[Linux Terminal Tweaks][1]
|
||||
|
||||
### 获取针对 Ubuntu 的终端的新字体的提示
|
||||
|
||||
你可以中从因特网上下载 TTF 格式的字体文件,右击这些 TTF 文件 [可以很容易在 Ubuntu 中安装这些新的字体][11] 。
|
||||
|
||||
![][12]
|
||||
|
||||
你可以打开一个新的终端窗口来加载新安装的字体。
|
||||
|
||||
不过,请记住,**Ubuntu 不会在终端中显示所有新安装的字体**。为什么?因为终端已经被分配使用 monospaced 字体。如果字体中字母间靠得很近的,那看起来就很诡异了。一些字体不能在字母o和数字0之间提供适当的清晰度。同样,你也可能面临区分小写字母l和小写字母i的难题。
|
||||
|
||||
这就是为什么你会在终端中所看到的字体的名称中通常会带有‘mono’的原因。
|
||||
|
||||
一般来说,在字体方面可能会有很多可读性难题,这可能会造成更加混乱的局面。因此,最好选择一种不会在终端上使人难易阅读的字体。
|
||||
|
||||
你还应该检查在你增大/减少字体大小期间该字体是否看起来良好/诡异,以确保在你自定义你的终端时没有问题。
|
||||
|
||||
### 针对终端自定义的字体建议
|
||||
|
||||
Free mono 和 Noto mono 是默认字体选择列表中可用的一些好字体,可应用于你的终端。
|
||||
|
||||
你可以尝试 [在 Linux 中安装新的字体][11] ,像 **JetBrains Mono** ,**Robo Mono** ,Larabiefont ,Share Tech Mono 以及来自Google 和其它来源的字体。
|
||||
|
||||
_你喜欢在 Ubuntu 的终端上使用什么样的字体和大小?请在下面的评论区告诉我们!_
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://itsfoss.com/change-terminal-font-ubuntu/
|
||||
|
||||
作者:[Ankush Das][a]
|
||||
选题:[lujun9972][b]
|
||||
译者:[robsean](https://github.com/robsean)
|
||||
校对:[校对者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/lujun9972
|
||||
[1]: https://itsfoss.com/customize-linux-terminal/
|
||||
[2]: https://itsfoss.com/linux-terminal-emulators/
|
||||
[3]: https://itsfoss.com/open-terminal-ubuntu/
|
||||
[4]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2021/09/terminal-preference.png?resize=800%2C428&ssl=1
|
||||
[5]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2021/09/terminal-right-click-menu.png?resize=800%2C341&ssl=1
|
||||
[6]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2021/09/ubuntu-terminal-preference-option.png?resize=800%2C303&ssl=1
|
||||
[7]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2021/09/enable-font-change-ubuntu-terminal.png?resize=798%2C310&ssl=1
|
||||
[8]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2021/09/monospace-font-default.png?resize=800%2C651&ssl=1
|
||||
[9]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2021/09/ubuntu-custom-font-selection.png?resize=800%2C441&ssl=1
|
||||
[10]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2021/09/ubuntu-terminal-font-2.png?resize=723%2C353&ssl=1
|
||||
[11]: https://itsfoss.com/install-fonts-ubuntu/
|
||||
[12]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/12/install-new-fonts-ubuntu.png?resize=800%2C463&ssl=1
|
Loading…
Reference in New Issue
Block a user