Python in FL5, Image and Trace.

I'm having difficulty with adding an image to the background layer. I can create the image no problem with g.Rasterize(imagexyz), but I don't see anything about adding it to the glyph again.

I'm doing some stuff with PIL, but I can't even get that far until I can add the image to the glyph to trace it.

Trace(imagexyz) does not work. It appears there is a bug with Trace.

relevant documentation:

Any help is appreciated. Thank you,

Jdooley

Comments

  • Here's the way:

    imagexyz.Trace(g)

  • Yeah, so this works, but the traced image gets put at (0,0)

    I thought about adding a pixel to fix the sidebearings, but glyphs with descenders get put in at 0,0 as well. Any ideas on how to fix this?

    Manually tracing a background image works fine and inserts the trace results exactly where they should go.