Re: Question about scaling text within a subView

2010-06-10 Thread Alastair Houghton
On 9 Jun 2010, at 21:11, Eric E. Dolecki wrote: I have a view that contains text in it. I am scaling it up and down... When at 100% the text is nice and crisp. When scaled, it's blurry (the default state for the view). How can I fix that? Would I need to set the text again at a specific

Re: Question about scaling text within a subView

2010-06-10 Thread Gordon Apple
Text will scale just fine by changing the view's bounds (or the transform) if you are NOT using a layer-backed view. I had to abandon this approach on the iPad because everything is layer-backed and it just scales pixels. On 6/10/10 4:04 AM, cocoa-dev-requ...@lists.apple.com

Question about scaling text within a subView

2010-06-09 Thread Eric E. Dolecki
I have a view that contains text in it. I am scaling it up and down... When at 100% the text is nice and crisp. When scaled, it's blurry (the default state for the view). How can I fix that? Would I need to set the text again at a specific size each time the animation is complete?

Re: Question about scaling text within a subView

2010-06-09 Thread Matej Bukovinski
By applying a CGAffineTransform you're basically doing a pixel operation. The pixels from your normally (100%) scaled view are taken and modified by the transformation matrix. Scaling up this way produces blurry results, that's an universal truth. If you need sharp results on both scales

Re: Question about scaling text within a subView

2010-06-09 Thread Jens Alfke
On Jun 9, 2010, at 1:45 PM, Matej Bukovinski wrote: If you need sharp results on both scales don't apply a CGAffineTransform but rather increase your views frame and redraw everything as needed. You actually need to mess with the view’s bounds after changing the frame, otherwise you get