mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-26 21:30:55 +08:00
commit
b1e4e1c160
@ -1,114 +0,0 @@
|
||||
[#]: collector: (lujun9972)
|
||||
[#]: translator: (robsean)
|
||||
[#]: reviewer: ( )
|
||||
[#]: publisher: ( )
|
||||
[#]: url: ( )
|
||||
[#]: subject: (How to install Microsoft TrueType Fonts on Ubuntu-based Distributions)
|
||||
[#]: via: (https://itsfoss.com/install-microsoft-fonts-ubuntu/)
|
||||
[#]: author: (Community https://itsfoss.com/author/itsfoss/)
|
||||
|
||||
How to install Microsoft TrueType Fonts on Ubuntu-based Distributions
|
||||
======
|
||||
|
||||
If you open some Microsoft documents in LibreOffice on Linux, you’ll notice that the fonts look a bit different. You’ll also notice that you cannot find common fonts like [Times New Roman][1], Arial etc.
|
||||
|
||||
Don’t worry. I’ll show you how to install these fonts in Ubuntu and other Ubuntu-based Linux distributions. But before that, let me tell you why these fonts are not available by default.
|
||||
|
||||
### Why Microsoft fonts are not installed by default in Linux?
|
||||
|
||||
![][2]
|
||||
|
||||
Times New Roman, Arial and other such fonts are owned by Microsoft and they are not open source. Many Linux distributions don’t provide proprietary software by default to avoid licensing issue.
|
||||
|
||||
This is why Ubuntu and other Linux distributions use an open source fonts “Liberation fonts” to substitute Microsoft fonts by default. The [Liberation Fonts][3] were created by [Red Hat][4] to substitute Arial, Arial Narrow, Times New Roman and Courier New as their width is the same. When you open a document written in Times New Roman, the equivalent Liberation Font will be used to keep the document uninterrupted.
|
||||
|
||||
However Liberation fonts are not identical to Microsoft’s fonts and in some cases you may need to use Arial or Times New Roman. A very common scenario is that Microsoft’s fonts are the only option is in schools, universities and other public and private organizations. They require you to submit the documents in one of those fonts.
|
||||
|
||||
Good thing is that you can install the Microsoft fonts on Ubuntu and other distributions easily. This way, you will be able to increase compatibility of LibreOffice and have the freedom to choose an open source office software.
|
||||
|
||||
### Installing Microsoft fonts on Ubuntu-based Linux distributions
|
||||
|
||||
You can [install new fonts in Ubuntu][5] by downloading them on your own. But since Microsoft fonts are very popular (and is provided free of cost), Ubuntu provides an easy way of installing it.
|
||||
|
||||
Be aware that despite Microsoft has released its core fonts for free of charge, the usage of the fonts is restricted in other operating systems. You’ll have to read and accept EULA (End User License Agreement) before installing Microsoft fonts in Ubuntu.
|
||||
|
||||
These fonts are [available in the multiverse repositories so make sure to enable it][6] first:
|
||||
|
||||
```
|
||||
sudo add-apt-repository multiverse
|
||||
```
|
||||
|
||||
After that, you can update your Ubuntu repository cache and install the Microsoft fonts like this:
|
||||
|
||||
```
|
||||
sudo apt update && sudo apt install ttf-mscorefonts-installer
|
||||
```
|
||||
|
||||
Press tab to select **OK** and the press enter when the Microsoft’s End user agreement appears.
|
||||
|
||||
![Press tab to highlight the selection][7]
|
||||
|
||||
Click **Yes** to accept the Microsoft’s agreement:
|
||||
|
||||
![Use tab key to make a selection and then press enter][8]
|
||||
|
||||
When the installation is done, you should update the font cache using the command below:
|
||||
|
||||
```
|
||||
sudo fc-cache -f -v
|
||||
```
|
||||
|
||||
![][9]
|
||||
|
||||
If you open the LibreOffice now, you’ll see the Microsoft [TrueType fonts][10].
|
||||
|
||||
![][11]
|
||||
|
||||
In case that you accidentally reject the license agreement, you can reinstall the installer with this command:
|
||||
|
||||
```
|
||||
sudo apt install –reinstall ttf-mscorefonts-installer
|
||||
```
|
||||
|
||||
Microsoft TrueType fonts are also available via the [Ubuntu Restricted Extras package][12] that contains other proprietary media codecs to play files like MP3 etc.
|
||||
|
||||
Don’t underestimate proprietary fonts
|
||||
|
||||
You may think what’s the big deal with fonts? After all, it’s just a font, not a crucial piece of software, right?
|
||||
But did you know that for years, [Netflix paid millions of dollars for the proprietary font][13] it used? At the end, they created their own custom fonts and that saved them a considerable amount of money.
|
||||
|
||||
I hope you find this quick tutorial useful. More productivity tutorials are down the line, leave your comments below and subscribe to our social media for more!
|
||||
|
||||
![][14]
|
||||
|
||||
### Dimitrios Savvopoulos
|
||||
|
||||
Dimitrios is an MSc Mechanical Engineer but a Linux enthusiast in heart. He is well settled in Solus OS but curiosity drives him to constantly test other distros. Challenge is part of his personality and his hobby is to compete from 5k to the marathon distance.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://itsfoss.com/install-microsoft-fonts-ubuntu/
|
||||
|
||||
作者:[Community][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/itsfoss/
|
||||
[b]: https://github.com/lujun9972
|
||||
[1]: https://en.wikipedia.org/wiki/Times_New_Roman
|
||||
[2]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/03/microsoft-fonts-ubuntu.png?ssl=1
|
||||
[3]: https://en.wikipedia.org/wiki/Liberation_fonts
|
||||
[4]: https://en.wikipedia.org/wiki/Red_Hat
|
||||
[5]: https://itsfoss.com/install-fonts-ubuntu/
|
||||
[6]: https://itsfoss.com/ubuntu-repositories/
|
||||
[7]: https://i1.wp.com/i.imgur.com/JoEJp5w.png?ssl=1
|
||||
[8]: https://i0.wp.com/i.imgur.com/M8zTc7f.png?ssl=1
|
||||
[9]: https://i0.wp.com/i.imgur.com/Cshle6S.png?ssl=1
|
||||
[10]: https://en.wikipedia.org/wiki/TrueType
|
||||
[11]: https://i1.wp.com/i.imgur.com/9oIu3oj.png?ssl=1
|
||||
[12]: https://itsfoss.com/install-media-codecs-ubuntu/
|
||||
[13]: https://thehustle.co/nextflix-sans-custom-font/
|
||||
[14]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/03/Dimitrios.jpg?ssl=1
|
@ -0,0 +1,115 @@
|
||||
[#]: collector: (lujun9972)
|
||||
[#]: translator: (robsean)
|
||||
[#]: reviewer: ( )
|
||||
[#]: publisher: ( )
|
||||
[#]: url: ( )
|
||||
[#]: subject: (How to install Microsoft TrueType Fonts on Ubuntu-based Distributions)
|
||||
[#]: via: (https://itsfoss.com/install-microsoft-fonts-ubuntu/)
|
||||
[#]: author: (Community https://itsfoss.com/author/itsfoss/)
|
||||
|
||||
如何在基于 Ubuntu 的发行版上安装微软 TrueType 字体
|
||||
======
|
||||
|
||||
如果你在 Linux 上打开一些微软文档,你将注意到字体会看起来有一点不同。你也将注意到你不能找到一些常见的字体,像 [Times New Roman][1], Arial 等等。
|
||||
|
||||
不用担心。我将向你展示如何在 Ubuntu 上和其它基于 Ubuntu 的 Linux 发行版上安装这些字体。但是在此之前,让我告诉你为什么这些字体没有被默认安装。
|
||||
|
||||
### 为什么微软字体不被默认安装在 Linux 中?
|
||||
|
||||
![][2]
|
||||
|
||||
Times New Roman, Arial 和其它此类字体归微软所有,并且这些字体不是开源的。很多 Linux 发行版默认不提供专有软件来避免许可证问题。
|
||||
|
||||
这就是为什么在默认情况下 Ubuntu 和其它 Linux 发行版使用开源字体 “Liberation fonts” 来替代微软字体的原因。[Red Hat][4] 创建 [Liberation Fonts][3]来代替 Arial, Arial Narrow, Times New Roman 和 Courier New ,如同这些字体的宽度一样。当你打开一个使用 Times New Roman 字体的文档时, 对应的 Liberation Font 将被用来保持文档文字间间隔等距连续。
|
||||
|
||||
不过,Liberation fonts 与微软的字体并不是完全相同的,在一些情况下,你可能需要使用 Arial 或 Times New Roman 。一个非常常见的情况是,在学校,大学和其他公共和私人组织中,微软的字体是唯一的选择。他们要求你使用微软字体中的其中一种字体来提交文档。
|
||||
|
||||
你可以在 Ubuntu 和其它发行版上很容易地安装微软字体的一件很好的事。以这种方式,你将增强 LibreOffice 的兼容性,并将有选择开源办公软件的自由。
|
||||
|
||||
### 在基于 Ubuntu 的 Linux 发行版上安装微软字体
|
||||
|
||||
你可以自己下载字体,并 [在 Ubuntu 中安装新的字体][5] 。但是自从微软字体变得非常流行(并且免费提供),Ubuntu 提供了一种简单的方法来安装它们。
|
||||
|
||||
要知道尽管微软已经免费发布了其核心字体,在其它操作系统中使用字体依然受到限制。在 Ubuntu 中安装微软字体前,你必须阅读并接受 EULA (最终用户许可协议) 。
|
||||
|
||||
这些字体 [在 multiverse 存储库中可获得,首先要确保启用它][6] :
|
||||
|
||||
```
|
||||
sudo add-apt-repository multiverse
|
||||
```
|
||||
|
||||
在此之后,你可以更新你的 Ubuntu 存储库缓存,并像这样安装微软字体:
|
||||
|
||||
```
|
||||
sudo apt update && sudo apt install ttf-mscorefonts-installer
|
||||
```
|
||||
|
||||
当微软的最终用户协议出现时,按 tab 键来选择 **OK** ,并按回车键。
|
||||
|
||||
![按 tab 键来高亮选择][7]
|
||||
|
||||
单击 **Yes** 来接受微软的协议:
|
||||
|
||||
![使用 tab 键来作出选择,并按回车键][8]
|
||||
|
||||
当安装完成后,你应该使用下面的命令来更新字体缓存:
|
||||
|
||||
```
|
||||
sudo fc-cache -f -v
|
||||
```
|
||||
|
||||
![][9]
|
||||
|
||||
如果你现在打开 LibreOffice ,你将看到微软 [TrueType 字体][10] 。
|
||||
|
||||
![][11]
|
||||
|
||||
如果意外地拒绝许可协议,你可以使用这个命令来重新安装安装程序:
|
||||
|
||||
```
|
||||
sudo apt install –reinstall ttf-mscorefonts-installer
|
||||
```
|
||||
|
||||
微软的 TrueType 字体也可以通过 [Ubuntu Restricted Extras package][12] 获得,其包含用来播放 MP3 等文件的其它专有的多媒体编解码器。
|
||||
|
||||
不要轻视专有字体。
|
||||
|
||||
你可能认为字体有什么大不了的呢?毕竟,它只是一款字体,而不是软件的一个关键部分,对吧?
|
||||
但是你知道,这些年来 [Netflix 为其使用的专有字体支付了数百万美元][13] 吗?最后,他们创建了自己的自定义字体,这为他们节省了一大笔钱。
|
||||
|
||||
我希望你发现这个快速教程是有用的。更多的创造性的教程已下线,请在下面留下你的评论,了解更多信息请订阅我们的社交媒体!
|
||||
|
||||
![][14]
|
||||
|
||||
### Dimitrios Savvopoulos
|
||||
|
||||
Dimitrios 是一名机械工程师理学硕士,但是在内心深处是一名 Linux 狂热爱好者。他习惯于使用 Solus 操作系统,但好奇心驱使者他不断测试其它的发行版。
|
||||
挑战是他魅力的一部分,他的爱好是自5公里到马拉松的长距离比赛。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://itsfoss.com/install-microsoft-fonts-ubuntu/
|
||||
|
||||
作者:[Community][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/itsfoss/
|
||||
[b]: https://github.com/lujun9972
|
||||
[1]: https://en.wikipedia.org/wiki/Times_New_Roman
|
||||
[2]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/03/microsoft-fonts-ubuntu.png?ssl=1
|
||||
[3]: https://en.wikipedia.org/wiki/Liberation_fonts
|
||||
[4]: https://en.wikipedia.org/wiki/Red_Hat
|
||||
[5]: https://itsfoss.com/install-fonts-ubuntu/
|
||||
[6]: https://itsfoss.com/ubuntu-repositories/
|
||||
[7]: https://i1.wp.com/i.imgur.com/JoEJp5w.png?ssl=1
|
||||
[8]: https://i0.wp.com/i.imgur.com/M8zTc7f.png?ssl=1
|
||||
[9]: https://i0.wp.com/i.imgur.com/Cshle6S.png?ssl=1
|
||||
[10]: https://en.wikipedia.org/wiki/TrueType
|
||||
[11]: https://i1.wp.com/i.imgur.com/9oIu3oj.png?ssl=1
|
||||
[12]: https://itsfoss.com/install-media-codecs-ubuntu/
|
||||
[13]: https://thehustle.co/nextflix-sans-custom-font/
|
||||
[14]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/03/Dimitrios.jpg?ssl=1
|
Loading…
Reference in New Issue
Block a user