CoreText can help you:
CTFontGetGlyphsForCharacters
(iOS 3.2 onwards) maps Unicode characters to glyphs
CTFontDrawGlyphs
(iOS 4.2 onwards) draws the glyphs into a CGContext.
NB. CGContextShowGlyphs
should work, but I never found a way to convert my UniChars to glyphs. More on that here:
Ancient, pre iOS 3.2 answer
you need to use UIKit for this.
Check out [NSString drawAtPoint:...]
to get started.
This SO question is useful, too.
I don't know what they were thinking with the CoreGraphic text stuff, it's useless.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…