刚刚学习,并尝试在我的系统中安装新字体。
到目前为止,我已经创建了一个目录“fonts”,并将“oregon”字体解压缩到这个文件夹中。现在字体在 /home/denny/fonts 中。
如何将这些字体移动到 /usr/share/fonts?我还在这个字体目录中创建了一个新文件夹“oregon”。我认为我所有的默认字体都在这个目录中。
我知道我在这里遗漏了一些东西。
谢谢你,丹尼
在您的home目录中创建一个文件夹,名为.fonts:
mkdir /home/$USER/.fonts
Run Code Online (Sandbox Code Playgroud)
解压缩文件并将它们移动到那里。现在从终端运行命令:
fc-cache -v
fc-cache-64 -v
Run Code Online (Sandbox Code Playgroud)
字体现在应该可用。
更多信息,请参见man fc-cache:
DESCRIPTION
fc-cache scans the font directories on the system and builds font information cache files for applications using fontconfig
for their font handling.
If directory arguments are not given, fc-cache uses each directory in the current font configuration. Each directory is
scanned for font files readable by FreeType. A cache is created which contains properties of each font and the associated
filename. This cache is used to speed up application startup when using the fontconfig library.
Note that fc-cache must be executed once per architecture to generate font information customized for that architecture.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
27334 次 |
| 最近记录: |