Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 24, 2008, 03:34 PM   #1
john903
macrumors member
 
Join Date: Apr 2008
size of text drawn with CGContextShowTextAtPoint

I doing text drawing with CGContextShowTextAtPoint. How do I get the width and height in pixels of the drawn text?
john903 is offline   0 Reply With Quote
Old Aug 26, 2008, 12:41 AM   #2
kainjow
Demi-God (Moderator emeritus)
 
kainjow's Avatar
 
Join Date: Jun 2000
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).
kainjow is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
how do i increase the size of text in documents? TranceRm Mac OS X 6 Mar 3, 2011 08:56 PM
Standard Size of a Photo with the i4 Wicked1 iPhone 5 Jul 13, 2010 02:31 PM
How to change the font size of text in UITextView dynamically in iPhone city17 iPhone/iPad Programming 9 Nov 4, 2009 04:12 PM
Changing font size of text Angieray Mac Basics and Help 5 Oct 5, 2009 01:07 PM
Reducing size of Leopard text chrisjhill Mac Basics and Help 1 Jan 5, 2008 11:28 AM


All times are GMT -5. The time now is 06:35 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC