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

标签 linux svg png converters inkscape

尝试使用 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/

相关文章:

c++ - 列表框对齐问题

javascript - 如何导入 SVG 文件以便访问其属性?

html - 为什么跨度为 : auto and display: inline-block parent of svg is getting bigger height than its svg child?

image - 如何将 PNG 转换为 1 位 BMP

linux - QMAKE_CXXFLAGS 不起作用

linux - 如何分配/dev/fbX?

linux - 一台 Linux 服务器中的 nginx 2 服务器 block

css - 如何在正方形中创建 SVG 4 三 Angular 形

r - 在 R 中使用 saveHTML() {animation} 时增加 png 分辨率

r - 将图像大小调整为ggplot2网格