在 Ubuntu WSL 上安装 Windows 字体后无法访问

在 Ubuntu WSL 上安装 Windows 字体后无法访问

我正在尝试使用 WSL 在 Ubuntu 子系统上获取 Microsoft WindowsCopperplate Gothic字体。我按照此链接安装似乎进展顺利。但是,当我运行它时,fc-list | grep "Copperplate"我没有得到任何结果。当我运行它时,fc-list | grep "New Roman"我没有得到任何结果。

如何通过命令行访问 Ubuntu 子系统上新安装的 Windows 字体?

答案1

事实证明,安装过程并不像我想象的那么顺利。也许我在第一次安装时没有接受条款。我运行了以下命令:

sudo apt remove ttf-mscorefonts-installer
sudo dpkg -P ttf-mscorefonts-installer
sudo apt install ttf-mscorefonts-installer
sudo fc-cache -f

现在fc-list | grep "New Roman"为我提供了基于 Times New Roman 的各种字体,所以我认为它起作用了。

命令dpkg来自另一个问题,我不确定为什么有必要这么做。

相关内容