I'm creating an image offscreen using a context from CGBitmapContextCreate().
While drawing text, I tried to use the:
CGContextSetTextMatrix(contextRef, CGAffineTransformMake(1.0, 0.0, 0.0, -1.0, 0.0, 0.0));
but my text was still upside down. If I used the standard transforms it was correct:
CGContextTranslateCTM(contextRef, 0.0, contextRect.size.height);
CGContextScaleCTM(contextRef, 1.0, -1.0);
My question is should the CGContextSetTextMatrix work for an offscreen bitmap? Maybe I was doing something wrong.