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
fo
> 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
> i
ke it non-editable.
>
> - Original Message -
> From: "Ajay Sabhaney"
> To: "Kyle Sluder"
> Cc: "cocoa-dev List"
> Sent: Monday, May 30, 2011 1:21:31 AM
> Subject: Re: Linearly Scaling Text
>
>> > I hope that there are
n-editable.
- Original Message -
From: "Ajay Sabhaney"
To: "Kyle Sluder"
Cc: "cocoa-dev List"
Sent: Monday, May 30, 2011 1:21:31 AM
Subject: Re: Linearly Scaling Text
> I hope that there are no issues scaling an NSTextView that is layer-backed
> (either usi
> I hope that there are no issues scaling an NSTextView that is layer-backed
> (either using NSView's scaleUnitSquareToSize method, or the bounds
> manipulation approach that TextEdit uses).
Unfortunately, there seems to be issues with scaling an NSTextView in a
layer-backed hierarchy as well -
Thanks Kyle, that's quite helpful.
We were initially hesitant to add the NSTextView directly to the layer-hosted
view, however the following thread consoled us a little, especially since we
were able to get geometry working correctly:
http://www.mail-archive.com/cocoa-dev@lists.apple.com/msg2195
On Sun, May 29, 2011 at 5:54 PM, Ajay Sabhaney wrote:
> I have a suspicion that the reason for this has something to do with the fact
> that the NSTextView instance is being added as a subview of a layer-hosting
> view.
Yes, this is very much unsupported. You will need to stop using
NSTextView
>> Also, you should disable screen font substitution via -[NSLayoutManager
>> setUsesScreenFont:NO].
>>
>> This is the main source of glyph advancement differences you're seeing.
>
> Thanks Aki, indeed this has removed the small horizontal offset that was
> there.
>
> I am however unable to fi
On 2011-05-25, at 3:41 PM, Douglas Davidson wrote:
>
> On May 25, 2011, at 2:37 PM, Ajay Sabhaney wrote:
>
>> - Instead of trying to scale text linearly, use a transformation to scale
>> the NSTextView and image representation appropriately. While this is easy
>> to do with an image, I am ha
> Also, you should disable screen font substitution via -[NSLayoutManager
> setUsesScreenFont:NO].
>
> This is the main source of glyph advancement differences you're seeing.
Thanks Aki, indeed this has removed the small horizontal offset that was there.
I am however unable to figure out where
Also, you should disable screen font substitution via -[NSLayoutManager
setUsesScreenFont:NO].
This is the main source of glyph advancement differences you're seeing.
Aki
On 2011/05/25, at 14:41, Douglas Davidson wrote:
>
> On May 25, 2011, at 2:37 PM, Ajay Sabhaney wrote:
>
>> - Instead of
On Wed, May 25, 2011 at 2:37 PM, Ajay Sabhaney wrote:
> Currently, zooming modifies the font sizes in the attributed string. I.e. if
> the text in a particular text box is 12pt at 100%, then zooming to 200%
> increases the font size to 24pt. Image representations of text are generated
> by us
On May 25, 2011, at 2:37 PM, Ajay Sabhaney wrote:
> - Instead of trying to scale text linearly, use a transformation to scale the
> NSTextView and image representation appropriately. While this is easy to do
> with an image, I am having some issues scaling an NSTextView. I've tried
> subclas
Hello list,
I am working on an application in which a user may insert, resize, and edit
text boxes in a workspace. We anticipate that a single user will have many
(possibly hundreds) of text items in a workspace. The user is also able to pan
and zoom in/out of a workspace. Because of the per
14 matches
Mail list logo