Fontforge:使用fontforge命令行将字形导出到SVG

编程入门 行业动态 更新时间:2024-10-18 01:41:29
本文介绍了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

本文发布于:2023-07-27 00:04:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1219130.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:字形   命令   导出到   Fontforge   fontforge

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!