Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mars.tsang

macrumors newbie
Original poster
When i tried to use Quartz 2d's CGContextShowGlyphsAtPoint or CGContextShowTextAtPoint to draw some chinese characters , i found the characters cann' t display ,but it's ok when there's only english characters .

Does Quartz not support this ? Or i have missed something ?

Hope someone can help.

Thanks .
 
Is there some reason you want to draw in Quartz instead of Cocoa Touch? If not, try using the NSString drawing methods instead.
 
Is there some reason you want to draw in Quartz instead of Cocoa Touch? If not, try using the NSString drawing methods instead.

Thanks firewood!

I use quartz mainly for a better performance cause i need to draw mass text , on the other side , i need to draw underline for some special string.
 
I believe that quartz does not draw unicode text, only ascii or macroman. As suggested, use the UIStringDrawing.h methods. I don't think you should find any performance issues. However, you can't use UIKit from a background thread.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.