Re: NSTextView will truncate view when using fixed-width font
Re: NSTextView will truncate view when using fixed-width font
- Subject: Re: NSTextView will truncate view when using fixed-width font
- From: Douglas Davidson <email@hidden>
- Date: Thu, 11 Nov 2004 13:17:56 -0800
On Nov 11, 2004, at 1:01 PM, Michael Hanna wrote:
The basic problem is that I get unpredictable results when displaying
fixed-width fonts in the TextView. The text will truncate(usually),
mostly when the point size is really large. I look at the
NSTextStorage and all the data is there..
I have tried [textView isRichText:YES], [textView isRichText:NO].
To set the font I'm using [textView setFont:font];
any ideas why this may happen?
Can you reproduce this in TextEdit, or by modifying one of the
TextSizingExample examples? Try comparing your configuration to one of
those. If the point size is actually large enough that a single glyph
won't fit, then layout is not going to work properly, because the
oversized glyphs themselves can't be laid out, but otherwise there
shouldn't be a problem.
Douglas Davidson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden