Command-line tool for converting TTF/OTF fonts to SVG

前端 未结 3 1491
南笙
南笙 2020-12-29 05:53

Does anyone know of a command-line tool that will convert both TTF and OTF fonts to SVG fonts?

3条回答
  •  半阙折子戏
    2020-12-29 06:22

    The fontforge recipe given previously by @Erik no longer works - fontforge has switched to Python scripting.

    Here's how I converted a font from PFA to SVG on the command line - this will also work fine for TTF, etc.:

    fontforge -c 'import fontforge;fontforge.open("/usr/share/fonts/X11/Type1/NachlieliCLM-Bold.pfa").generate("NachlieliCLM-Bold.svg")'
    

提交回复
热议问题