GNU/Linux >> Znalost Linux >  >> Ubuntu

Nainstalujte písma Microsoft Windows v Ubuntu 18.04 LTS

Většina vzdělávacích institucí stále používá písma Microsoft. U jiných zemí si nejsem jistý. Ale v Tamilnadu (Indie), Times New Roman a Arial fonty jsou stále široce používány téměř všemi druhy dokumentačních prací, projektů a úkolů na vysokých školách a školách. Nejen vzdělávací instituce, většina státních a soukromých úřadů, malé organizace a obchody stále používají písma MS Windows. Pro případ, že byste se ocitli v situaci, kdy potřebujete používat písma Windows, zde je návod, jak nainstalovat písma Microsoft Windows na desktopy Ubuntu Linux.

Odmítnutí odpovědnosti: Microsoft uvolnil svá základní písma zdarma. Uvědomte si však, že použití písem společnosti Microsoft je v jiných operačních systémech zakázáno . Před instalací MS Fonts v jakémkoli operačním systému Linux si pozorně přečtěte EULA. My (OSTechNix) neneseme odpovědnost za žádný druh pirátství.

Instalace písem Microsoft do počítačů Ubuntu 18.04 a 16.04 LTS

Nainstalujte písma MS TrueType, jak je znázorněno níže:

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

Zobrazí se průvodce smlouvou s koncovým uživatelem společnosti Microsoft. Klikněte na OK pokračovat.

Klikněte na Ano přijmout smlouvu Microsoft:

Po instalaci písem musíme aktualizovat mezipaměť písem pomocí příkazu:

$ sudo fc-cache -f -v

Ukázkový výstup:

/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 directory
fc-cache: succeeded

Instalace písem Microsoft Windows v duálním spouštění s Linuxem a Windows

Pokud máte duální spouštěcí systém s operačním systémem Linux a Windows, můžete snadno nainstalovat písma MS z jednotky Windows C. Jediné, co musíte udělat, je připojit oddíl Windows (C:/Windows ).

Předpokládám, že jste připojili C:\Windows oddíl na /Windowsdrive adresář v Linuxu.

Nyní propojte umístění písem se složkou písem systému Linux, jak je znázorněno níže.

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

Po propojení složky fonts znovu vygenerujte mezipaměť fontconfig pomocí příkazu:

fc-cache

Případně zkopírujte všechna písma Windows do /usr/share/fonts adresář a nainstalujte písma pomocí následujících příkazů:

mkdir /usr/share/fonts/WindowsFonts
cp /Windowsdrive/Windows/Fonts/* /usr/share/fonts/WindowsFonts
chmod 755 /usr/share/fonts/WindowsFonts/*

Nakonec vygenerujte mezipaměť fontconfig pomocí příkazu:

fc-cache

Testujte a používejte písma systému Windows v Ubuntu

Po instalaci MS Fonts otevřete LibreOffice nebo GIMP. Nyní tam uvidíte základní písma Microsoft.

A je to. Doufám, že tato příručka bude užitečná.

Aktualizace 1:

Mscorefonts je předinstalovaný v Ubuntu 18.04.2 LTS desktop. Takže si myslím, že nejnovější Ubuntu 18.04 LTS uživatelé desktopů nemusí instalovat.

Aktualizace 2:

Pokud jste omylem odmítli licenční smlouvu během upgradu z Ubuntu 16.04 LTS na 18.04.3 LTS, můžete přeinstalovat instalační program a získat licenční smlouvu spuštěním následujícího příkazu:

$ sudo apt-get install --reinstall ttf-mscorefonts-installer

Díky Arno77 .


Ubuntu
  1. Jak nainstalovat Microsoft TrueType Fonts v Ubuntu 11.10

  2. Nainstalujte Karbon na Ubuntu 20.04 LTS

  3. Jak nainstalovat mezipaměť laku na Ubuntu 18.04 LTS

  1. Nainstalujte Python 3.7 na Ubuntu 18.04 LTS

  2. Nainstalujte Python 3.9 na Ubuntu 20.04 LTS

  3. Nainstalujte Dokuwiki na Ubuntu 20.04 LTS

  1. Jak nainstalovat Microsoft Fonts v Ubuntu Linux

  2. Jak nainstalovat Microsoft Teams na Ubuntu 20.04 LTS

  3. Jak nainstalovat Microsoft PowerShell 6.1.1 na Ubuntu 18.04 LTS