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 - Add stroke to font with fill color and generate font
The script dumps all glyphs to individual SVG files in a folder. Anyway, I've installed the latest windows version of FontForge. From what I understand, FontForge embeds python, and the binary is ffpython.exe. So you should be able to call ffpython myscript.py {arg1 arg2 arg3} The problem is that this doesn't work. When I do ffpython myscript.py arg1 arg2, I get an error: ImportError: DLL load ...
Can't get FontForge to import as a module in a custom Python script
Note also, that this script assumes that fontforge is running and has the font file opened. (Link to fontforge scripting help, see below). To execute a script right from within Fontforge select "file -> execute script... " from the main menu, paste the script and hit run. Now all the used glyphs are selected, all unused glyphs are deselected.
I've successfully created a few icon fonts for my websites and the Inkscape FontForge approach as outlined in this how-to is pretty solid, and if you're used to using software such as Inkscape, it's also pretty easy too. Here's the steps I take: Preparation (using Inkscape in this example) Open the Inkscape document that holds your designs. Make sure you've converted all shapes, type and lines ...
I have done, apt-get install fontforge on my ubuntu system. When i do import fontforge in my python code, it throws error as, No module named fontforge. When i do ...