• 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, NSTextStorage, NSParagraph and lineHeight
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView, NSTextStorage, NSParagraph and lineHeight


  • Subject: Re: NSTextView, NSTextStorage, NSParagraph and lineHeight
  • From: Douglas Davidson <email@hidden>
  • Date: Thu, 10 Oct 2002 15:58:21 -0700

On Thursday, October 10, 2002, at 03:32 PM, Keith Renz wrote:

I need to compact text in an NSTextView both horizontally (kerning) and vertically (line spacing (leading) and/or line height). The following code does what I want visually, but it really messes up the text selection highlighting. I've played with all sorts of combinations of line heights, line spacing, paragraph spacing, etc., but the highlighting problem exists whenever the line height is set to something smaller than the font's "natural" line height. Any ideas?

You don't say what sort of problems you're seeing, or what system version you are running. The effect of this should be reproducible in TextEdit by setting the font to Courier 11, setting the line spacing to fixed 11 pt, and tightening the kerning. I don't see obvious problems with that.

Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSTextView, NSTextStorage, NSParagraph and lineHeight
      • From: Keith Renz <email@hidden>
References: 
 >NSTextView, NSTextStorage, NSParagraph and lineHeight (From: Keith Renz <email@hidden>)

  • Prev by Date: Re: case-insensitive strings
  • Next by Date: Re: NSMutableArray and releases etc
  • Previous by thread: NSTextView, NSTextStorage, NSParagraph and lineHeight
  • Next by thread: Re: NSTextView, NSTextStorage, NSParagraph and lineHeight
  • Index(es):
    • Date
    • Thread