I want to draw unicode strings on iphone with CGContextShowText,but it don't support unicode. Is there any way to draw unicode text?
Any suggestions wil be appreciated!
BTW: I also want to use NSString drawAtPoint withFont, But the following code doesn't work!
Code:NSString *str = [NSString stringWithFormat:@"%C%C in Unicode", 0x4e2d,0x6587]; [str drawMarkupAtPoint:CGPointMake(100.0,100.0)]; //it works struct __GSFont *textFont = GSFontCreateWithName("Helvetica", 2, 20.0f); [str drawAtPoint:CGPointMake(200.0,200.0) withFont:textFont ]; //it doesn't work, i can't see this text on iphone CFRelease(textFont );



LinkBack URL
About LinkBacks








Reply With Quote
Bookmarks