View Full Version : Quartz 2D can not draw Chinese Character ?
mars.tsang
Sep 20, 2009, 01:37 PM
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 .
firewood
Sep 20, 2009, 02:04 PM
Is there some reason you want to draw in Quartz instead of Cocoa Touch? If not, try using the NSString drawing methods instead.
mars.tsang
Sep 20, 2009, 02:26 PM
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.
PhoneyDeveloper
Sep 20, 2009, 04:56 PM
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.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.