0

我有很多 svg 文件(大约 24 个)并且想要制作 a 字体。我尝试使用Fontforge,但不幸的是我必须在程序中一一导入。我发现这种方法在 Linux 中使用过,但我是 Windows 用户。有什么方法可以将这些文件批量导入 Fontforge,特别是在 Windows 中?对不起,我是新手。

4

2 回答 2

0

FontForge 嵌入了 Python。您可以使用 Linux 方法。这是fontforge --help简化为相关细节的输出:

$ fontforge --help
fontforge [options] [fontfiles]
    -lang=py         use python for scripts (may precede -script)
    -lang=ff         use fontforge's legacy scripting language
    -script scriptfile   (executes scriptfile)
        must be the first option (or follow -lang).
        All others passed to scriptfile.
    -dry scriptfile      (syntax checks scriptfile)
        must be the first option. All others passed to scriptfile.
        Only for fontforge's own scripting language, not python.
    -c script-string     (executes argument as scripting cmds)
        must be the first option. All others passed to the script.

If a scriptfile is specified then FontForge will not open the X display
    nor will it process any additional arguments. It will execute the
    scriptfile and give it any remaining arguments
If the first argument is an executable filename, and that file's first
    line contains "fontforge" then it will be treated as a scriptfile.
于 2016-02-17T19:21:36.517 回答
0

我为此创建了一个 python 脚本,仅在 Linux 上进行了测试,但没有理由它也不能在 Windows 上运行。你可以试试。

https://github.com/mnesarco/ff-batch

于 2020-12-06T00:41:54.153 回答