入门：如何更改 Ubuntu 的终端的字体和大小
字体
![](/data/attachment/album/202111/17/132645otre44u7ge68tzzb.jpg)


如果你在 Ubuntu 上使用终端的时间很长，你可能会希望调整终端的字体和大小以获取一种良好的体验。


更改字体是一种最简单但最直观的 [Linux 的终端自定义](https://itsfoss.com/customize-linux-terminal/) 的方法。让我向你展示在 Ubuntu 中更改终端的字体的详细步骤，以及一些字体选择的提示和建议。


注意：这些步骤可能也对大多数的其它的 [Linux 的终端模拟器](https://itsfoss.com/linux-terminal-emulators/) 有效，但是你访问选项的方法可能会有所不同。


### 使用 GUI 更改 Ubuntu 的终端的字体和大小


**步骤 1.** [在 Ubuntu 中打开终端窗口](https://itsfoss.com/open-terminal-ubuntu/) ，方法是按 `Ctrl+Alt+T` 组合键。


**步骤 2.** 打开终端“<ruby> 首选项 <rt>  Preferences </rt></ruby>”。你可以单击菜单按钮来找到它。


![](/data/attachment/album/202111/17/132703fn9cbztcnxkcz9nb.png)


你也可以右击终端屏幕的任意位置来访问首选项，如下图所示。


![](/data/attachment/album/202111/17/132703hutffu35dt33y2dn.png)


**步骤 3.** 现在，你应该能够访问针对终端的设置。在默认情况下，在这里将会有一个未命名的配置文件。这就是默认的配置文件。**我建议创建一个新的配置文件**，以便你的更改不会影响默认的设置。


![](/data/attachment/album/202111/17/132705njh4ng0qzq40iex2.png)


**步骤 4.** 为了更改字体，你需要启用“<ruby> 自定义字体 <rt>  Custom font </rt></ruby>” 选项，接下来单击 “**Monospace Regular**” 。


![](/data/attachment/album/202111/17/132707ityaczde00izm5qi.png)


它将显示针对这个选项的可用的一个字体列表。


![](/data/attachment/album/202111/17/132709utjbejwrz9ziddw8.png)


在这里，你可以在字体列表的底部快速预览字体，也可以调整你的 Ubuntu 的终端的字体大小。


在默认情况下，字体的大小是 **12** ，字体的样式是 **Ubuntu mono** 。


**步骤 5.** 最后，你也可以搜索你喜欢的字体样式，并在查看预览和调整字体大小后，通过点击 “<ruby> 选择 <rt>  Select </rt></ruby>” 来完成更改字体。


![](/data/attachment/album/202111/17/132710tcc4xlbc1dp9ccel.png)


这就是全部的步骤。你已经成功地更改字体。在下面的图像中查看更改。移动划款来查看不同点。


![Ubuntu terminal font change](/data/attachment/album/202111/17/132711bouvync3nbbilcx3.png)


### 获取针对 Ubuntu 的终端的新字体的提示


你可以中从因特网上下载 TTF 格式的字体文件，右击这些 TTF 文件 [可以很容易在 Ubuntu 中安装这些新的字体](https://itsfoss.com/install-fonts-ubuntu/) 。


![](/data/attachment/album/202111/17/132713n22572i7gdi274ii.png)


你可以打开一个新的终端窗口来加载新安装的字体。


不过，请记住，**Ubuntu 不会在终端中显示所有新安装的字体**。为什么？因为终端已经被分配使用 monospaced 字体。如果字体中字母间靠得很近的，那看起来就很诡异了。一些字体不能清晰区分字母 “o” 和数字 “0” 。同样，你也可能面临区分小写字母 “l” 和小写字母 “i” 的难题。


这就是为什么你会在终端中所看到的字体的名称中通常会带有 “mono” 的原因。


一般来说，在字体方面可能会有很多可读性难题，这可能会造成更加混乱的局面。因此，最好选择一种不会在终端上使人难易阅读的字体。


你还应该检查在你增大/减少字体大小期间该字体是否看起来良好/诡异，以确保在你自定义你的终端时没有问题。


### 针对终端自定义的字体建议


Free mono 和 Noto mono 是默认字体选择列表中可用的一些好字体，可应用于你的终端。


你可以尝试 [在 Linux 中安装新的字体](https://itsfoss.com/install-fonts-ubuntu/) ，像 **JetBrains Mono** 、**Robo Mono** 、Larabiefont 、Share Tech Mono 以及来自 Google 和其它来源的字体。


你喜欢在 Ubuntu 的终端上使用什么样的字体和大小？请在下面的评论区告诉我们！




---


via: <https://itsfoss.com/change-terminal-font-ubuntu/>


作者：[Ankush Das](https://itsfoss.com/author/ankush/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[robsean](https://github.com/robsean) 校对：[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)

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 ways of [Linux terminal customization](https://itsfoss.com/customize-linux-terminal/). Let me show you the detailed steps for changing the terminal fonts in Ubuntu along with some tips and suggestions on font selection.

[Linux terminal emulator](https://itsfoss.com/linux-terminal-emulators/)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](https://itsfoss.com/open-terminal-ubuntu/) system by using Ctrl+Alt+T keys.

**Step 2.** Head to the “**Preferences**” option that you can find when you click on the menu.

![terminal preference](https://itsfoss.com/content/images/wordpress/2021/09/terminal-preference.png)

You can also perform a right-click anywhere on the terminal to access the option as shown below.

![terminal right click menu](https://itsfoss.com/content/images/wordpress/2021/09/terminal-right-click-menu.png)

**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.

![ubuntu terminal preference option](https://itsfoss.com/content/images/wordpress/2021/09/ubuntu-terminal-preference-option-800x303.png)

**Step 4**. To change the font, you need to enable the “**Custom font**” option and then click on “**Monospace Regular**”

![enable font change ubuntu terminal](https://itsfoss.com/content/images/wordpress/2021/09/enable-font-change-ubuntu-terminal.png)

It will show a list of fonts available for selection.

![monospace font default](https://itsfoss.com/content/images/wordpress/2021/09/monospace-font-default.png)

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.

![ubuntu custom font selection](https://itsfoss.com/content/images/wordpress/2021/09/ubuntu-custom-font-selection.png)

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 2](https://itsfoss.com/content/images/wordpress/2021/09/ubuntu-terminal-font-2.png)

## 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](https://itsfoss.com/install-fonts-ubuntu/) by double-clicking the TTF file.

![Install New Fonts Ubuntu](https://itsfoss.com/content/images/wordpress/2020/12/install-new-fonts-ubuntu-800x463.png)

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](https://itsfoss.com/install-fonts-ubuntu/) like **JetBrains Mono**, and **Robo Mono**, Larabiefont, Share Tech Mono and more from Google Fonts and other sources.

[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)

*What font style/size do you prefer to use with the Ubuntu terminal? Let us know in the comments below!*