• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTextView will truncate view when using fixed-width font
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSTextView will truncate view when using fixed-width font (From: Michael Hanna <email@hidden>)

  • Prev by Date: Re: 1 controller, 1 nib, 2 windows?
  • Next by Date: Re: Symbol font still not directly accessible?
  • Previous by thread: NSTextView will truncate view when using fixed-width font
  • Next by thread: Optimizing drawing for copiesOnScroll
  • Index(es):
    • Date
    • Thread