Apple's documentation for drawTextInRect seems to indicate this is possible:
"By the time this method is called, the current graphics context is already configured with the default environment and text color for drawing. In your overridden method, you can configure the current context further and then invoke super to do the actual drawing or you can do the drawing yourself. If you do render the text yourself, you should not invoke super."
But example below from my UILabel subclass (which I've confirmed is getting called) doesn't cause the text size to change no matter what text size I specify. Am I grabbing the right context or perhaps missing something bigger?
- (void)drawTextInRect:(CGRect)rect{
CGContextRef theContext = UIGraphicsGetCurrentContext();
CGContextSetFontSize(theContext, 32.0); // <-- doesn't change text size
[super drawTextInRect:rect];
}
Note - the text size isn't the only thing I need to change about the text, but if I could get the text size to change I'm pretty sure the rest of the changes I need to make would be easy.