Re: Question about scaling text within a subView
Re: Question about scaling text within a subView
- Subject: Re: Question about scaling text within a subView
- From: Gordon Apple <email@hidden>
- Date: Thu, 10 Jun 2010 10:33:14 -0500
- Thread-topic: Question about scaling text within a subView
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, "email@hidden"
<email@hidden> wrote:
> 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 size
>> each time the animation is complete?
>>
>> CGAffineTransform transformBig = CGAffineTransformMakeScale(1.8f, 1.8f);
>
> Can I just clarify---this question is about Core Animation, right? Or, put
> another way, what are you doing with your affine transform?
>
> There's no reason that merely using an affine transform should result in
> pixel-based scaling.
>
> Kind regards,
>
> Alastair.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden