How i print the text using CGContextSetTextPosition?

Posted by Rajendra Bhole on Stack Overflow See other posts from Stack Overflow or by Rajendra Bhole
Published on 2010-04-01T09:22:27Z Indexed on 2010/04/01 9:33 UTC
Read the original article Hit count: 397

Filed under:

hi, i write an application in which i want to write/draw the text using CGContext functions such as CGContextSetTextPosition, CGContextSetTextDrawingMode, etc. I written an code but it can't be work,

    CGContextSetTextDrawingMode (ctx , kCGTextFillStroke);
CGContextSetRGBFillColor(ctx, 5.0, 5.0, 5.0, 1.0);
CGContextSelectFont(ctx, "Times", 10, kCGEncodingMacRoman);
CGContextShowTextAtPoint (ctx, 60.0, 426.0, (const char*)"Sat", (size_t)20);        

The above code is appropriate or not?

© Stack Overflow or respective owner

Related posts about iphone