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

john903

macrumors member
Original poster
Apr 11, 2008
66
0
I doing text drawing with CGContextShowTextAtPoint. How do I get the width and height in pixels of the drawn text?
 
If you're using Cocoa you can use NSAttributedString to get the size. I'm not sure of a pure C-based way of doing it though (maybe somehow with CFMutableString).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.