I am trying to create a font/glyph by:
- taking a bitmap image
- creating an SVG with autotrace (on Linux)
- importing the outline as a glyph with python-fontforge (glyph.importOutlines(svgfile) )
This works fine except that the resulting glyph in inverted (see images). Any idea how this can be prevented, how the SVG or glyph can be inverted, or anything like that?
Source bitmap:

Autotraced SVG:

Resulting font:

solved this simply by using potrace instead of autotrace.
for reference, these are the steps:
convert bitmap to svg (linux command line):
use svg as glyph (python):
That’s it, result below for use on a website:
css:
html: