如何删除ubuntu中的字体

如何删除ubuntu中的字体。 我是一个新的ubuntu用户,发现很难删除我安装的字体。

我预计问题可能是安装字体,使我的Firefox浏览器将我的邮件字体变为粗体。 我使用firefox和chrome浏览器体验相同的视图。 许多字体都是大胆的。!

一种简单的方法是使用字体管理器。 只需按键盘上的Ctrl + Alt + T即可打开终端。 打开时,运行以下命令:

sudo apt-get install font-manager 

安装完成后,运行程序,突出显示您不喜欢的字体,然后禁用或删除它们。 见下图。

在此处输入图像描述

您也可以手动删除它们。

(在某些情况下,这可能很有用,例如:如果你想使用类似于Raleway Thin等瘦字体的conky程序,但也安装了Raleway Regular,那么conky有时会自动使用常规,而font-manager将不会能说出差异。所以,想法是手动删除等等。)

如果使用Font Viewer安装,则它们位于~/.local/share/fonts

另请查看~/.fonts

首先 ,确定要删除的字体名称,例如’Nimbus Sans L’

然后在终端中运行以下命令以了解它的位置:

 $ fc-list "Nimbus Sans L" /usr/share/fonts/type1/gsfonts/n019063l.pfb: Nimbus Sans L:style=Regular Condensed Italic /usr/share/fonts/type1/gsfonts/n019064l.pfb: Nimbus Sans L:style=Bold Condensed Italic /usr/share/fonts/type1/gsfonts/n019043l.pfb: Nimbus Sans L:style=Regular Condensed /usr/share/fonts/type1/gsfonts/n019044l.pfb: Nimbus Sans L:style=Bold Condensed /usr/share/fonts/type1/gsfonts/n019023l.pfb: Nimbus Sans L:style=Regular Italic /usr/share/fonts/type1/gsfonts/n019024l.pfb: Nimbus Sans L:style=Bold Italic /usr/share/fonts/type1/gsfonts/n019004l.pfb: Nimbus Sans L:style=Bold /usr/share/fonts/type1/gsfonts/n019003l.pfb: Nimbus Sans L:style=Regular 

如果你不知道确切的字体名称,只需尝试fc-match -s Nimbusfc-list |grep -i nimbus ,这些命令会给你一个提示。

其次 ,删除你想要的东西。 例如,下面应该删除’Nimbus Sans L’的Bold Condensed Italic样式:

 $ sudo rm /usr/share/fonts/type1/gsfonts/n019064l.pfb 

删除后,键入此命令以更新字体缓存数据库:

 $ fc-cache -fv 

如果if不起作用,则需要通过以下方式重启系统:

 $ sudo reboot