Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Microsoft Windows fonts on Ubuntu 18.04 LTS

2025-01-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to install Microsoft Windows fonts on Ubuntu 18.04 LTS, I believe most people do not know much about it, so share this article for your reference, I hope you will learn a lot after reading this article, let's learn about it!

Install MS fonts on Ubuntu 18.04LTS Desktop Edition

Install MS TrueType fonts as follows:

$sudo apt update$ sudo apt install ttf-mscorefonts-installer

Then the Microsoft end user Agreement wizard will appear. Click OK to continue.

Click Yes to accept the agreement of Microsoft:

After installing the font, we need to use the command line to update the font cache:

$sudo fc-cache-f-v

Sample output:

/ usr/share/fonts: caching, new cache contents: 0 fonts, 6 dirs/usr/share/fonts/X11: caching, new cache contents: 0 fonts, 4 dirs/usr/share/fonts/X11/Type1: caching, new cache contents: 8 fonts, 0 dirs/usr/share/fonts/X11/encodings: caching, new cache contents: 0 fonts, 1 dirs/usr/share/fonts/X11/encodings/large: caching, new cache contents: 0 fonts, 0 dirs/usr/share/fonts/X11/misc: caching, new cache contents: 89 fonts 0 dirs/usr/share/fonts/X11/util: caching, new cache contents: 0 fonts, 0 dirs/usr/share/fonts/cMap: caching, new cache contents: 0 fonts, 0 dirs/usr/share/fonts/cmap: caching, new cache contents: 0 fonts, 5 dirs/usr/share/fonts/cmap/adobe-cns1: caching, new cache contents: 0 fonts, 0 dirs/usr/share/fonts/cmap/adobe-gb1: caching, new cache contents: 0 fonts, 0 dirs/usr/share/fonts/cmap/adobe-japan1: caching New cache contents: 0 fonts, 0 dirs/usr/share/fonts/cmap/adobe-japan2: caching, new cache contents: 0 fonts, 0 dirs/usr/share/fonts/cmap/adobe-korea1: caching, new cache contents: 0 fonts, 0 dirs/usr/share/fonts/opentype: caching, new cache contents: 0 fonts, 2 dirs/usr/share/fonts/opentype/malayalam: caching, new cache contents: 3 fonts, 0 dirs/usr/share/fonts/opentype/noto: caching, new cache contents: 24 fonts, 0 dirs/usr/share/fonts/truetype: caching New cache contents: 0 fonts, 46 dirs/usr/share/fonts/truetype/Gargi: caching, new cache contents: 1 fonts, 0 dirs/usr/share/fonts/truetype/Gubbi: caching, new cache contents: 1 fonts, 0 dirs/usr/share/fonts/truetype/Nakula: caching, new cache contents: 1 fonts, 0 dirs/usr/share/fonts/truetype/Navilu: caching, new cache contents: 1 fonts, 0 dirs/usr/share/fonts/truetype/Sahadeva: caching, new cache contents: 1 fonts, 0 dirs/usr/share/fonts/truetype/Sarai: caching New cache contents: 1 fonts, 0 dirs/usr/share/fonts/truetype/abyssinica: caching, new cache contents: 1 fonts, 0 dirs/usr/share/fonts/truetype/dejavu: caching, new cache contents: 6 fonts, 0 dirs/usr/share/fonts/truetype/droid: caching, new cache contents: 1 fonts, 0 dirs/usr/share/fonts/truetype/fonts-beng-extra: caching, new cache contents: 6 fonts, 0 dirs/usr/share/fonts/truetype/fonts-deva-extra: caching, new cache contents: 3 fonts 0 dirs/usr/share/fonts/truetype/fonts-gujr-extra: caching, new cache contents: 5 fonts, 0 dirs/usr/share/fonts/truetype/fonts-guru-extra: caching, new cache contents: 1 fonts, 0 dirs/usr/share/fonts/truetype/fonts-kalapi: caching, new cache contents: 1 fonts, 0 dirs/usr/share/fonts/truetype/fonts-orya-extra: caching, new cache contents: 1 fonts, 0 dirs/usr/share/fonts/truetype/fonts-telu-extra: caching, new cache contents: 2 fonts 0 dirs/usr/share/fonts/truetype/freefont: caching, new cache contents: 12 fonts, 0 dirs/usr/share/fonts/truetype/kacst: caching, new cache contents: 15 fonts, 0 dirs/usr/share/fonts/truetype/kacst-one: caching, new cache contents: 2 fonts, 0 dirs/usr/share/fonts/truetype/lao: caching, new cache contents: 1 fonts, 0 dirs/usr/share/fonts/truetype/liberation: caching, new cache contents: 16 fonts, 0 dirs/usr/share/fonts/truetype/liberation2: caching New cache contents: 12 fonts, 0 dirs/usr/share/fonts/truetype/lohit-assamese: caching, new cache contents: 1 fonts, 0 dirs/usr/share/fonts/truetype/lohit-bengali: caching, new cache contents: 1 fonts, 0 dirs/usr/share/fonts/truetype/lohit-devanagari: caching, new cache contents: 1 fonts, 0 dirs/usr/share/fonts/truetype/lohit-gujarati: caching, new cache contents: 1 fonts, 0 dirs/usr/share/fonts/truetype/lohit-kannada: caching, new cache contents: 1 fonts 0 dirs/usr/share/fonts/truetype/lohit-malayalam: caching, new cache contents: 1 fonts, 0 dirs/usr/share/fonts/truetype/lohit-oriya: caching, new cache contents: 1 fonts, 0 dirs/usr/share/fonts/truetype/lohit-punjabi: caching, new cache contents: 1 fonts, 0 dirs/usr/share/fonts/truetype/lohit-tamil: caching, new cache contents: 1 fonts, 0 dirs/usr/share/fonts/truetype/lohit-tamil-classical: caching, new cache contents: 1 fonts 0 dirs/usr/share/fonts/truetype/lohit-telugu: caching, new cache contents: 1 fonts, 0 dirs/usr/share/fonts/truetype/malayalam: caching, new cache contents: 11 fonts, 0 dirs/usr/share/fonts/truetype/msttcorefonts: caching, new cache contents: 60 fonts, 0 dirs/usr/share/fonts/truetype/noto: caching, new cache contents: 2 fonts, 0 dirs/usr/share/fonts/truetype/openoffice: caching, new cache contents: 1 fonts, 0 dirs/usr/share/fonts/truetype/padauk: caching New cache contents: 4 fonts, 0 dirs/usr/share/fonts/truetype/pagul: caching, new cache contents: 1 fonts, 0 dirs/usr/share/fonts/truetype/samyak: caching, new cache contents: 1 fonts, 0 dirs/usr/share/fonts/truetype/samyak-fonts: caching, new cache contents: 3 fonts, 0 dirs/usr/share/fonts/truetype/sinhala: caching, new cache contents: 1 fonts, 0 dirs/usr/share/fonts/truetype/tibetan-machine: caching, new cache contents: 1 fonts 0 dirs/usr/share/fonts/truetype/tlwg: caching, new cache contents: 58 fonts, 0 dirs/usr/share/fonts/truetype/ttf-khmeros-core: caching, new cache contents: 2 fonts, 0 dirs/usr/share/fonts/truetype/ubuntu: caching, new cache contents: 13 fonts, 0 dirs/usr/share/fonts/type1: caching, new cache contents: 0 fonts, 1 dirs/usr/share/fonts/type1/gsfonts: caching, new cache contents: 35 fonts, 0 dirs/usr/local/share/fonts: caching, new cache contents: 0 fonts 0 dirs/home/sk/.local/share/fonts: skipping, no such directory/home/sk/.fonts: skipping, no such directory/var/cache/fontconfig: cleaning cache directory/home/sk/.cache/fontconfig: cleaning cache directory/home/sk/.fontconfig: not cleaning non-existent cache directoryfc-cache: succeeded installs MS fonts on Linux and Windows dual boot machines

If you have a dual boot system for Linux and Windows, you can easily install MS fonts from the Windows C drive. All you have to do is mount the Windows partition (C:/windows).

I assume that you have mounted the C:\ Windows partition in the / Windowsdrive directory in Linux.

Now, link the font location to the font folder on your Linux system, as follows:

Ln-s / Windowsdrive/Windows/Fonts / usr/share/fonts/WindowsFonts

After linking the font file, regenerate the fontconfig cache using the command line:

Fc-cache

Alternatively, copy all Windows fonts to the / usr/share/fonts directory and install the fonts using the following command:

Mkdir / usr/share/fonts/WindowsFontscp / Windowsdrive/Windows/Fonts/* / usr/share/fonts/WindowsFontschmod 755 / usr/share/fonts/WindowsFonts/*

*, regenerate the fontconfig cache using the command line:

Fc-cache tests Windows fonts

Open LibreOffice or GIMP after installing MS fonts. Now, you will see the Microsoft coretype font.

That's it. I hope this guide will be useful. I warn you again that the use of MS fonts in other operating systems is prohibited. Please read the Microsoft license agreement before installing MS fonts.

The above is all the contents of the article "how to install Microsoft Windows fonts on Ubuntu 18.04LTS". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report