View Full Version : size of text drawn with CGContextShowTextAtPoint
john903
Aug 24, 2008, 04:34 PM
I doing text drawing with CGContextShowTextAtPoint. How do I get the width and height in pixels of the drawn text?
kainjow
Aug 26, 2008, 01:41 AM
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).
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.