要在Debian系统上为GIMP添加字体,您可以按照以下步骤操作:
sudo apt install -y fontconfig
grep "/usr/share/fonts" /etc/fonts/fonts.conf
确保配置文件中包含如下配置:
<dir>/usr/share/fonts/dir</dir>
将您想要添加的字体文件(如 .ttf 或 .TTF 格式)复制到 /usr/share/fonts/windowscp
目录中。例如:
mkdir -p /usr/share/fonts/windowscp
cp *.{ttf,TTF} /usr/share/fonts/windowscp/
sudo chown root:root /usr/share/fonts/windowscp/*.{ttf,TTF}
sudo chmod 755 /usr/share/fonts/windowscp
运行以下命令以刷新系统字体缓存:
sudo fc-cache -f -v
完成以上步骤后,您应该能够在GIMP中看到新添加的字体。如果字体仍然没有显示,请尝试重启GIMP或者重新登录系统。