小編給大家分享一下在Ubuntu 18.04 LTS上如何安裝Microsoft Windows字體,相信大部分人都還不怎么了解,因此分享這篇文章給大家參考一下,希望大家閱讀完這篇文章后大有收獲,下面讓我們一起去了解一下吧!
興業(yè)網(wǎng)站建設(shè)公司創(chuàng)新互聯(lián)建站,興業(yè)網(wǎng)站設(shè)計(jì)制作,有大型網(wǎng)站制作公司豐富經(jīng)驗(yàn)。已為興業(yè)1000多家提供企業(yè)網(wǎng)站建設(shè)服務(wù)。企業(yè)網(wǎng)站搭建\成都外貿(mào)網(wǎng)站建設(shè)公司要多少錢,請(qǐng)找那個(gè)售后服務(wù)好的興業(yè)做網(wǎng)站的公司定做!
如下所示安裝 MS TrueType 字體:
$ sudo apt update$ sudo apt install ttf-mscorefonts-installer
然后將會(huì)出現(xiàn) Microsoft 的最終用戶協(xié)議向?qū)?,點(diǎn)擊 OK以繼續(xù)。
點(diǎn)擊 Yes已接受 Microsoft 的協(xié)議:
安裝字體之后, 我們需要使用命令行來(lái)更新字體緩存:
$ 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 的雙啟動(dòng)系統(tǒng),你可以輕松地從 Windows C 驅(qū)動(dòng)器上安裝 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)在,你將會(huì)看到 Microsoft coretype 字體。
就是這樣, 希望這本指南有用。我再次警告你,在其他操作系統(tǒng)中使用 MS 字體是被禁止的。在安裝 MS 字體之前請(qǐng)先閱讀 Microsoft 許可協(xié)議。
以上是“在Ubuntu 18.04 LTS上如何安裝Microsoft Windows字體”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對(duì)大家有所幫助,如果還想學(xué)習(xí)更多知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!