如何在 Ubuntu 中定位字体?

Hen*_*all 40 fonts

12.04 的 Ubuntu 桌面即将崩溃。在新机器上安装了13.04,想将旧机器的Book Antiqua字体转移到新机器上。我如何在旧机器上找到它?我的/usr目录是空的。

我的fonts.conf文件有这些行:

<!-- Font directory list -->
<dir>/usr/share/fonts</dir>
<dir>/usr/x11R6/lib/X11/fonts</dir> 
<dir>/usr/local/share/fonts</dir>
<dir>~/.fonts</dir>
Run Code Online (Sandbox Code Playgroud)

不知道这是什么意思,但我的/usr目录中没有任何内容。

小智 43

我使用fc-list命令查看安装的字体列表。

  • `fc 列表 | grep "&lt;(部分) 字体名称&gt;"` 也许很方便 (4认同)

Rad*_*anu 38

秘密地点:

字体下落的秘密位置在 /etc/fonts/fonts.conf.

gedit /etc/fonts/fonts.conf
Run Code Online (Sandbox Code Playgroud)

标准地点:

/usr/share/fonts
/usr/local/share/fonts
/home/<username>/.fonts #where <username> is your user name
Run Code Online (Sandbox Code Playgroud)

请注意,该.fonts文件夹是一个隐藏文件夹。

来源:字体在 Ubuntu 中存储/位于何处?

  • 除了上面:`/home/&lt;username&gt;/.local/share/fonts` (10认同)

小智 22

我发现可以为 Precise (12.04) 和 Trusty (14.04) 安装字体

~/.local/share/fonts
Run Code Online (Sandbox Code Playgroud)

  • 现在这真是令人惊讶!这个位置绝对*不在我的`/etc/fonts/fonts.conf`中,即便如此,我使用Ubuntu的字体查看器安装的所有字体最终都在那里。 (2认同)