Fontforge:使用fontforge命令行将字形导出到SVG [英] Fontforge: Export a glyph to SVG with fontforge command line

查看:678
本文介绍了Fontforge:使用fontforge命令行将字形导出到SVG的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Fontforge命令行将字形(从其unicode)导出到SVG?

How to export a glyph (from its unicode) to SVG with Fontforge command line ?

我还需要指定字体大小,并保留其在字体中的原始边距.

I also need to specify the font size and keep the original margins it has in the font.

推荐答案

您可能已经找到了答案,但是我只需要使用最新版本的FontForge来完成.该命令的旧答案:

You may have found your answer already, but I just had to do this with the latest build of FontForge. The old answer of this command:

fontforge -lang=ff -c 'Open($1); SelectWorthOutputting(); foreach Export("svg"); endloop;' font.ttf 

在命令提示符下不想在Windows10上运行(我假设存在权限问题),但是您可以尝试一下.一个快速的解决方法是通过GUI执行脚本来实现.

From a command prompt didn't want to work on Windows10 (I assume a permission issue), but you could give it a try. A quick work-around is to do it via the GUI Execute Script.

  • 运行FontForge(对于安装在Program Files(x86)目录中的Windows10,您可能需要右键单击"run_fontforge.exe"->以管理员身份运行).

  • Run FontForge (For Windows10 installed in the Program Files (x86) directory, you may need to right-click "run_fontforge.exe" --> Run As Administrator).

打开要导出的字体.

转到文件>执行脚本

它将保存到FontForge文件夹(run_fontforge.exe所在的位置).

It'll save to the FontForge folder (where run_fontforge.exe is located).

这篇关于Fontforge:使用fontforge命令行将字形导出到SVG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆