How to draw a single glyph on its own to an image?

I would like to draw each glyph used by a Font in a PDF to its own image.

The following python code will generate a single image, at what ever resolution you want, as an individual PNG. (1.97 KB)