gpt4 book ai didi

linux - 使用 Inkscape 将带有自定义字体的 SVG 转换为 PNG

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:10:31 36 4
gpt4 key购买 nike

尝试使用 Inkscape 将 SVG 转换为 PNG 时遇到问题,SVG 文件包含我的机器 (Linux) 中不可用的自定义字体。

SVG 文件: https://dl.dropboxusercontent.com/u/61378613/source_file.svg

这里是转换成PNG的命令:

sudo inkscape -z -e result.png -w 3750 -h 7350 -d 3028 source_file.svg

这里有使用inkscape时的结果: enter image description here

这是在浏览器中打开的结果: enter image description here

最佳答案

您需要在系统上安装字体,inkscape 无法猜测它无法访问的字体的字形。

浏览器存在于网络中,因此它通过在后台下载网络字体来作弊(并且不让其他应用程序使用它们,这是网络字体的主要弱点)

关于linux - 使用 Inkscape 将带有自定义字体的 SVG 转换为 PNG,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37767119/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com