:在 Ubuntu 18.04 LTS 上安装 Microsoft Windows 字体 | Linux 中国-图片素材模板推荐免费ppt模版下载-道格办公

在 Ubuntu 18.04 LTS 上安装 Microsoft Windows 字体 | Linux 中国

要在Ubuntu 18.04 LTS上安装Microsoft Windows字体,请按照以下步骤进行操作: 1. 打开终端。你可以使用快捷键Ctrl+Alt+T来快速打开终端。 2. 确保系统已经安装了软件包`ttf-mscorefonts-installer`。如果没有安装,输入以下命令进行安装: ``` sudo apt-get install ttf-mscorefonts-installer ``` 3. 安装过程中,你需要接受软件许可协议。使用Tab键选择“OK”,然后按下回车键。 4.

以防万一,如果你需要在 Ubuntu 桌面版上使用 Microsoft 字体,请按照以下步骤安装。
-- Sk

致谢
编译自 | 
https://www.ostechnix.com/install-microsoft-windows-fonts-ubuntu-16-04/
 
 作者 | Sk
 译者 | Auk7F7 ? ? 共计翻译:5 篇 贡献时间:156 天

大多数教育机构仍在使用 Microsoft 字体, 我不清楚其他国家是什么情况。但在泰米尔纳德邦(印度的一个州), Times New Roman 和 Arial 字体主要被用于大学和学校的几乎所有文档工作、项目和作业。不仅是教育机构,而且一些小型组织、办公室和商店仍在使用 MS Windows 字体。以防万一,如果你需要在 Ubuntu 桌面版上使用 Microsoft 字体,请按照以下步骤安装。

免责声明: Microsoft 已免费发布其核心字体。 但请注意 Microsoft 字体是禁止使用在其他操作系统中。在任何 Linux 操作系统中安装 MS 字体之前请仔细阅读 EULA 。我们不负责这种任何种类的盗版行为。

(LCTT 译注:本文只做技术探讨,并不代表作者、译者和本站鼓励任何行为。)

在 Ubuntu 18.04 LTS 桌面版上安装 MS 字体

如下所示安装 MS TrueType 字体:

  1. $ sudo apt update

  2. $ sudo apt install ttf-mscorefonts-installer

然后将会出现 Microsoft 的最终用户协议向导,点击 OK 以继续。

点击 Yes 已接受 Microsoft 的协议:

安装字体之后, 我们需要使用命令行来更新字体缓存:

  1. $ sudo fc-cache -f -v

示例输出:

  1. /usr/share/fonts: caching, new cache contents: 0 fonts, 6 dirs

  2. /usr/share/fonts/X11: caching, new cache contents: 0 fonts, 4 dirs

  3. /usr/share/fonts/X11/Type1: caching, new cache contents: 8 fonts, 0 dirs

  4. /usr/share/fonts/X11/encodings: caching, new cache contents: 0 fonts, 1 dirs

  5. /usr/share/fonts/X11/encodings/large: caching, new cache contents: 0 fonts, 0 dirs

  6. /usr/share/fonts/X11/misc: caching, new cache contents: 89 fonts, 0 dirs

  7. /usr/share/fonts/X11/util: caching, new cache contents: 0 fonts, 0 dirs

  8. /usr/share/fonts/cMap: caching, new cache contents: 0 fonts, 0 dirs

  9. /usr/share/fonts/cmap: caching, new cache contents: 0 fonts, 5 dirs

  10. /usr/share/fonts/cmap/adobe-cns1: caching, new cache contents: 0 fonts, 0 dirs

  11. /usr/share/fonts/cmap/adobe-gb1: caching, new cache contents: 0 fonts, 0 dirs

  12. /usr/share/fonts/cmap/adobe-japan1: caching, new cache contents: 0 fonts, 0 dirs

  13. /usr/share/fonts/cmap/adobe-japan2: caching, new cache contents: 0 fonts, 0 dirs

  14. /usr/share/fonts/cmap/adobe-korea1: caching, new cache contents: 0 fonts, 0 dirs

  15. /usr/share/fonts/opentype: caching, new cache contents: 0 fonts, 2 dirs

  16. /usr/share/fonts/opentype/malayalam: caching, new cache contents: 3 fonts, 0 dirs

  17. /usr/share/fonts/opentype/noto: caching, new cache contents: 24 fonts, 0 dirs

  18. /usr/share/fonts/truetype: caching, new cache contents: 0 fonts, 46 dirs

  19. /usr/share/fonts/truetype/Gargi: caching, new cache contents: 1 fonts, 0 dirs

  20. /usr/share/fonts/truetype/Gubbi: caching, new cache contents: 1 fonts, 0 dirs

  21. /usr/share/fonts/truetype/Nakula: caching, new cache contents: 1 fonts, 0 dirs

  22. /usr/share/fonts/truetype/Navilu: caching, new cache contents: 1 fonts, 0 dirs

  23. /usr/share/fonts/truetype/Sahadeva: caching, new cache contents: 1 fonts, 0 dirs

  24. /usr/share/fonts/truetype/Sarai: caching, new cache contents: 1 fonts, 0 dirs

  25. /usr/share/fonts/truetype/abyssinica: caching, new cache contents: 1 fonts, 0 dirs

  26. /usr/share/fonts/truetype/dejavu: caching, new cache contents: 6 fonts, 0 dirs

  27. /usr/share/fonts/truetype/droid: caching, new cache contents: 1 fonts, 0 dirs

  28. /usr/share/fonts/truetype/fonts-beng-extra: caching, new cache contents: 6 fonts, 0 dirs

  29. /usr/share/fonts/truetype/fonts-deva-extra: caching, new cache contents: 3 fonts, 0 dirs

  30. /usr/share/fonts/truetype/fonts-gujr-extra: caching, new cache contents: 5 fonts, 0 dirs

  31. /usr/share/fonts/truetype/fonts-guru-extra: caching, new cache contents: 1 fonts, 0 dirs

  32. /usr/share/fonts/truetype/fonts-kalapi: caching, new cache contents: 1 fonts, 0 dirs

  33. /usr/share/fonts/truetype/fonts-orya-extra: caching, new cache contents: 1 fonts, 0 dirs

  34. /usr/share/fonts/truetype/fonts-telu-extra: caching, new cache contents: 2 fonts, 0 dirs

  35. /usr/share/fonts/truetype/freefont: caching, new cache contents: 12 fonts, 0 dirs

  36. /usr/share/fonts/truetype/kacst: caching, new cache contents: 15 fonts, 0 dirs

  37. /usr/share/fonts/truetype/kacst-one: caching, new cache contents: 2 fonts, 0 dirs

  38. /usr/share/fonts/truetype/lao: caching, new cache contents: 1 fonts, 0 dirs

  39. /usr/share/fonts/truetype/liberation: caching, new cache contents: 16 fonts, 0 dirs

  40. /usr/share/fonts/truetype/liberation2: caching, new cache contents: 12 fonts, 0 dirs

  41. /usr/share/fonts/truetype/lohit-assamese: caching, new cache contents: 1 fonts, 0 dirs

  42. /usr/share/fonts/truetype/lohit-bengali: caching, new cache contents: 1 fonts, 0 dirs

  43. /usr/share/fonts/truetype/lohit-devanagari: caching, new cache contents: 1 fonts, 0 dirs

  44. /usr/share/fonts/truetype/lohit-gujarati: caching, new cache contents: 1 fonts, 0 dirs

  45. /usr/share/fonts/truetype/lohit-kannada: caching, new cache contents: 1 fonts, 0 dirs

  46. /usr/share/fonts/truetype/lohit-malayalam: caching, new cache contents: 1 fonts, 0 dirs

  47. /usr/share/fonts/truetype/lohit-oriya: caching, new cache contents: 1 fonts, 0 dirs

  48. /usr/share/fonts/truetype/lohit-punjabi: caching, new cache contents: 1 fonts, 0 dirs

  49. /usr/share/fonts/truetype/lohit-tamil: caching, new cache contents: 1 fonts, 0 dirs

  50. /usr/share/fonts/truetype/lohit-tamil-classical: caching, new cache contents: 1 fonts, 0 dirs

  51. /usr/share/fonts/truetype/lohit-telugu: caching, new cache contents: 1 fonts, 0 dirs

  52. /usr/share/fonts/truetype/malayalam: caching, new cache contents: 11 fonts, 0 dirs

  53. /usr/share/fonts/truetype/msttcorefonts: caching, new cache contents: 60 fonts, 0 dirs

  54. /usr/share/fonts/truetype/noto: caching, new cache contents: 2 fonts, 0 dirs

  55. /usr/share/fonts/truetype/openoffice: caching, new cache contents: 1 fonts, 0 dirs

  56. /usr/share/fonts/truetype/padauk: caching, new cache contents: 4 fonts, 0 dirs

  57. /usr/share/fonts/truetype/pagul: caching, new cache contents: 1 fonts, 0 dirs

  58. /usr/share/fonts/truetype/samyak: caching, new cache contents: 1 fonts, 0 dirs

  59. /usr/share/fonts/truetype/samyak-fonts: caching, new cache contents: 3 fonts, 0 dirs

  60. /usr/share/fonts/truetype/sinhala: caching, new cache contents: 1 fonts, 0 dirs

  61. /usr/share/fonts/truetype/tibetan-machine: caching, new cache contents: 1 fonts, 0 dirs

  62. /usr/share/fonts/truetype/tlwg: caching, new cache contents: 58 fonts, 0 dirs

  63. /usr/share/fonts/truetype/ttf-khmeros-core: caching, new cache contents: 2 fonts, 0 dirs

  64. /usr/share/fonts/truetype/ubuntu: caching, new cache contents: 13 fonts, 0 dirs

  65. /usr/share/fonts/type1: caching, new cache contents: 0 fonts, 1 dirs

  66. /usr/share/fonts/type1/gsfonts: caching, new cache contents: 35 fonts, 0 dirs

  67. /usr/local/share/fonts: caching, new cache contents: 0 fonts, 0 dirs

  68. /home/sk/.local/share/fonts: skipping, no such directory

  69. /home/sk/.fonts: skipping, no such directory

  70. /var/cache/fontconfig: cleaning cache directory

  71. /home/sk/.cache/fontconfig: cleaning cache directory

  72. /home/sk/.fontconfig: not cleaning non-existent cache directory

  73. fc-cache: succeeded

在 Linux 和 Windows 双启动的机器上安装 MS 字体

如果你有 Linux 和 Windows 的双启动系统,你可以轻松地从 Windows C 驱动器上安装 MS 字体。 你所要做的就是挂载 Windows 分区(C:/windows)。

我假设你已经在 Linux 中将 C:Windows 分区挂载在了 /Windowsdrive 目录下。

现在,将字体位置链接到你的 Linux 系统的字体文件夹,如下所示:

  1. ln -s /Windowsdrive/Windows/Fonts /usr/share/fonts/WindowsFonts

链接字体文件之后,使用命令行重新生成 fontconfig 缓存:

  1. fc-cache

或者,将所有的 Windows 字体复制到 /usr/share/fonts 目录下并使用一下命令安装字体:

  1. mkdir /usr/share/fonts/WindowsFonts

  2. cp /Windowsdrive/Windows/Fonts/* /usr/share/fonts/WindowsFonts

  3. chmod 755 /usr/share/fonts/WindowsFonts/*

最后,使用命令行重新生成 fontconfig 缓存:

  1. fc-cache

测试 Windows 字体

安装 MS 字体后打开 LibreOffice 或 GIMP。 现在,你将会看到 Microsoft coretype 字体。

就是这样, 希望这本指南有用。我再次警告你,在其他操作系统中使用 MS 字体是被禁止的。在安装 MS 字体之前请先阅读 Microsoft 许可协议。

如果你觉得我们的指南有用,请在你的社区、专业网络上分享并支持我们。还有更多好东西在等着我们。持续访问!

庆祝吧!!


via: https://www.ostechnix.com/install-microsoft-windows-fonts-ubuntu-16-04/

作者:SK[2] 选题:lujun9972 译者:Auk7F7 校对:wxy

本文由 LCTT 原创编译,Linux中国 荣誉推出

文章为用户上传,仅供非商业浏览。发布者:Lomu,转转请注明出处: https://www.daogebangong.com/articles/detail/Install%20Microsoft%20Windows%20Fonts%20on%20Ubuntu%201804%20LTS%20%20Linux%20China.html

(810)
打赏 支付宝扫一扫 支付宝扫一扫
single-end

相关推荐