如何在Ubuntu上安装MS字体?

我做了sudo apt-get install ttf-mscorefonts-installer ,看起来它成功了。 但为什么我没有看到新的字体? (例如,当我在我的个人资料中为我的终端选择字体时)?

 $ sudo apt-get install ttf-mscorefonts-installer [sudo] password for cheungs: Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: ttf-mscorefonts-installer 0 upgraded, 1 newly installed, 0 to remove and 387 not upgraded. Need to get 0 B/27.4 kB of archives. After this operation, 133 kB of additional disk space will be used. Preconfiguring packages ... Selecting previously unselected package ttf-mscorefonts-installer. (Reading database ... 198874 files and directories currently installed.) Unpacking ttf-mscorefonts-installer (from .../ttf-mscorefonts-installer_3.4ubuntu3_all.deb) ... mscorefonts-eula license has already been accepted Processing triggers for fontconfig ... Processing triggers for update-notifier-common ... ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/andale32.exe ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/arial32.exe ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/arialb32.exe ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/comic32.exe ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/courie32.exe ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/georgi32.exe ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/impact32.exe ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/times32.exe ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/trebuc32.exe ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/verdan32.exe ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/webdin32.exe These fonts were provided by Microsoft "in the interest of cross- platform compatibility". This is no longer the case, but they are still available from third parties. You are free to download these fonts and use them for your own use, but you may not redistribute them in modified form, including changes to the file name or packaging format. Extracting cabinet: /tmp/tmpKiZJn9.exe extracting fontinst.inf extracting andale.inf extracting fontinst.exe extracting AndaleMo.TTF extracting ADVPACK.DLL extracting W95INF32.DLL extracting W95INF16.DLL All done, no errors. Extracting cabinet: /tmp/tmpscRkMp.exe extracting FONTINST.EXE extracting fontinst.inf extracting Ariali.TTF extracting Arialbd.TTF extracting Arialbi.TTF extracting Arial.TTF All done, no errors. Extracting cabinet: /tmp/tmpbj6o_K.exe extracting fontinst.exe extracting fontinst.inf extracting AriBlk.TTF All done, no errors. Extracting cabinet: /tmp/tmpPcR86z.exe extracting fontinst.inf extracting Comicbd.TTF extracting Comic.TTF extracting fontinst.exe All done, no errors. Extracting cabinet: /tmp/tmpOhqPyy.exe extracting cour.ttf extracting courbd.ttf extracting courbi.ttf extracting fontinst.inf extracting couri.ttf extracting fontinst.exe All done, no errors. Extracting cabinet: /tmp/tmp4d_sD6.exe extracting fontinst.inf extracting Georgiaz.TTF extracting Georgiab.TTF extracting Georgiai.TTF extracting Georgia.TTF extracting fontinst.exe All done, no errors. Extracting cabinet: /tmp/tmpWCFmAL.exe extracting fontinst.exe extracting Impact.TTF extracting fontinst.inf All done, no errors. Extracting cabinet: /tmp/tmpdBzrJ6.exe extracting fontinst.inf extracting Times.TTF extracting Timesbd.TTF extracting Timesbi.TTF extracting Timesi.TTF extracting FONTINST.EXE All done, no errors. Extracting cabinet: /tmp/tmpu_gD4C.exe extracting FONTINST.EXE extracting trebuc.ttf extracting Trebucbd.ttf extracting trebucbi.ttf extracting trebucit.ttf extracting fontinst.inf All done, no errors. Extracting cabinet: /tmp/tmpLiBv4G.exe extracting fontinst.exe extracting fontinst.inf extracting Verdanab.TTF extracting Verdanai.TTF extracting Verdanaz.TTF extracting Verdana.TTF All done, no errors. Extracting cabinet: /tmp/tmp_4WDyE.exe extracting fontinst.exe extracting Webdings.TTF extracting fontinst.inf extracting Licen.TXT All done, no errors. All fonts downloaded and installed. Setting up ttf-mscorefonts-installer (3.4ubuntu3) ... 

日志说,字体肯定是正确安装的。

但是,你的问题可能不在于字体不在列表中,而是因为你试图使用错误的字体。 GUI终端配置文件管理器仅允许默认选择固定宽度等宽字体。 这意味着,你可以看到一个字体(如果你肯定希望它在终端上),无论是否可以从Ubuntu中访问msfonts都将是Courier New

但是,它们也应该在LibreOffice中提供。

可能有一种方法可以通过更改配置文件以指向正确的字体来强制在终端中显示非等宽字体,但不建议这样做,因为等宽字体旨在进行纯文本格式化(fe ASCII绘图,字符基础表)可能。

在LibreOffice Writer中,访问工具 – >选项 – >字体选中“应用替换表”字段。 用你做的那个替换你不想要的某些字体。 Writer似乎在那时使所有新字体可用。