high-res text output?

I want to create high-res text output with openframeworks. I need to export files with ~ 500 000 characters (or more) and I’d like to be able to scale and rotate each character individually.
I’ve tried using cairo to create pdfs but it’s got some bugs/limitations when it comes to handling a lot of different font sizes and rotations on Windows. Plus I don’t really need vector output. So I tried ofTrueTypeFont to create the text and ofxTileSaver to export really big png files. Usually this works fine to get high-res output, but with the ofTrueTypeFont all I get is either a really pixelated output using drawString(), or really crude shapes using drawStringAsShapes().
Any idea that might work?

maybe via pango?