View Full Version : Quartz2D, scaling particular letters inside a string

Apr 2, 2009, 07:53 PM
Hi all,

I was wondering if anyone knows to how to make individual letters inside a string different scales to the rest of a letter in the quartz2d framework

so if i draw the word "hello" i can make the 'h' scaled up from the substring 'ello'

Apr 3, 2009, 09:32 AM
You would have to draw each character separately. Easiest way to scale it nicely is with NSAffineTransform/CGAffineTransform.

Apr 3, 2009, 02:03 PM
An NSAttributedString and the drawAtPoint: method might do what you want if you make the font size of the "h" larger than the font size of the "ello."

Apr 3, 2009, 05:24 PM
kainjow: i thought as much
the only problem i thought of doing it that way has been solved too...

autorelease: i saw the options of doing it in attributed strings, but i don't think you can use attributed strings inside the quartz's draw text method

thanks for your replies!