Re: NSTextView, NSTextStorage, NSParagraph and lineHeight
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.