Without my execution of anything to request inverted text, CGContextShowText draws it this way. This is a vertical mirror image of what should be.
float font_size = 19.; CGContextSelectFont (context, "Helvetica", font_size, kCGEncodingMacRoman); CGContextSetTextDrawingMode (context, kCGTextFill); CGContextSetRGBStrokeColor (context, 255, 0, 0, 0); CGContextSetRGBFillColor (context, 255, 0, 0, 0); CGContextSetTextPosition (context, x, y); CGContextShowText (context, cstring, strlen(cstring));
How can i fix this? Also why is this the default drawing mode?
Thanks.
source share