octosquidopus
octosquidopus

Reputation: 3713

FontForge: Export a font's individual glyphs into svg files in batch?

Is it possible to batch export individual glyphs from a font to SVG without having to export them manually one by one?

Related (but the other way around): Import a sequence of .svg files into FontForge as glyphs and output a font file

Upvotes: 7

Views: 3466

Answers (2)

chao
chao

Reputation: 11

I had the same "save failed" error when I first ran the above script. To resolve this problem on Windows 10, I ran FontForge as an Administrator and it ran perfectly fine. All the .svg files will be saved in the same directory where you installed FontForge (e.g. C:\Program Files (x86)\FontForgeBuilds). See https://fontforge.org/docs/scripting/scripting-alpha.html#Export for documentation on what files are supported when exporting.

Upvotes: 1

Peter Suwara
Peter Suwara

Reputation: 826

Open the font you want to export.

  • Go to File > Execute Script
  • Paste: SelectWorthOutputting(); foreach Export("svg"); endloop;
  • Select "FF" radial button.
  • Hit OK

Also works on the latest Mac version running on Mojave. The font files are saved in you user directory ~./.

Upvotes: 8

Related Questions