您好,登錄后才能下訂單哦!
小編給大家分享一下在Ubuntu 18.04 LTS上如何安裝Microsoft Windows字體,相信大部分人都還不怎么了解,因此分享這篇文章給大家參考一下,希望大家閱讀完這篇文章后大有收獲,下面讓我們一起去了解一下吧!
如下所示安裝 MS TrueType 字體:
$ sudo apt update$ sudo apt install ttf-mscorefonts-installer
然后將會出現(xiàn) Microsoft 的最終用戶協(xié)議向?qū)?,點擊 OK 以繼續(xù)。
點擊 Yes 已接受 Microsoft 的協(xié)議:
安裝字體之后, 我們需要使用命令行來更新字體緩存:
$ sudo fc-cache -f -v
示例輸出:
/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
如果你有 Linux 和 Windows 的雙啟動系統(tǒng),你可以輕松地從 Windows C 驅(qū)動器上安裝 MS 字體。 你所要做的就是掛載 Windows 分區(qū)(C:/windows)。
我假設(shè)你已經(jīng)在 Linux 中將 C:\Windows
分區(qū)掛載在了 /Windowsdrive
目錄下。
現(xiàn)在,將字體位置鏈接到你的 Linux 系統(tǒng)的字體文件夾,如下所示:
ln -s /Windowsdrive/Windows/Fonts /usr/share/fonts/WindowsFonts
鏈接字體文件之后,使用命令行重新生成 fontconfig 緩存:
fc-cache
或者,將所有的 Windows 字體復(fù)制到 /usr/share/fonts
目錄下并使用一下命令安裝字體:
mkdir /usr/share/fonts/WindowsFontscp /Windowsdrive/Windows/Fonts/* /usr/share/fonts/WindowsFontschmod 755 /usr/share/fonts/WindowsFonts/*
***,使用命令行重新生成 fontconfig 緩存:
fc-cache
安裝 MS 字體后打開 LibreOffice 或 GIMP。 現(xiàn)在,你將會看到 Microsoft coretype 字體。
就是這樣, 希望這本指南有用。我再次警告你,在其他操作系統(tǒng)中使用 MS 字體是被禁止的。在安裝 MS 字體之前請先閱讀 Microsoft 許可協(xié)議。
以上是“在Ubuntu 18.04 LTS上如何安裝Microsoft Windows字體”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對大家有所幫助,如果還想學(xué)習(xí)更多知識,歡迎關(guān)注億速云行業(yè)資訊頻道!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。