Re: Linearly Scaling Text
Re: Linearly Scaling Text
- Subject: Re: Linearly Scaling Text
- From: Gordon Apple <email@hidden>
- Date: Mon, 30 May 2011 20:23:21 -0500
- Thread-topic: Linearly Scaling Text
Actually, I wasn¹t talking about tiled layers, although that might also be
relevant. I was talking about tiled views. There is some sample code
available for tiled views, but it took some massaging to get it to do what I
wanted. I only tiled my view vertically and used half of a screen height
for each tile, so it only used three actual tiles to render a very long text
view. I was thinking that maybe each view tile could be layer backed and
(when squeezed down) use a high-density layer (if that¹s possible), so that
it comes out right when scaled back up.
On 5/30/11 7:14 PM, "Ajay Sabhaney" <email@hidden> wrote:
>> > Because it was mono-Font text, I resorted to scaling the font
>> > instead.
>
> Actually I did try scaling the font instead of the text view, but I'm unable
> to get the text to scale linearly as our application should be able to handle
> most fonts.
>
>> > I never went back to view scaling, but I wonder
>> > if you could control the granularity of the involved CALayers such that a
>> > tiled view would produce a clean result when scaled up? Just a thought.
>
> Hmm, there seems to be an issue scaling any layer-backed NSTextView, but I'll
> definitely look in to using a tiled layer. Thanks.
>
_______________________________________________
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