fc-cache:找不到命令

Jon*_*noB 10 fonts .ttf 18.04

我刚刚通过运行以下命令在 ubuntu 18.04 服务器(不是桌面)上安装了 ttf-mscorefonts:

sudo apt install ttf-mscorefonts-installer
Run Code Online (Sandbox Code Playgroud)

一切似乎都已正确安装。

显然,为了让系统识别这些字体,我需要运行

sudo fc-cache -f -v
Run Code Online (Sandbox Code Playgroud)

但是,这会引发以下错误:

sudo: fc-cache: command not found
Run Code Online (Sandbox Code Playgroud)

Rav*_*ina 22

你必须安装“fontconfig”包:

sudo apt install fontconfig
Run Code Online (Sandbox Code Playgroud)

现在您应该可以使用fc-cache.