Skip navigation.
 
mlRe: Line Spacing: NSTextField ~10% > NSTextView for same font
FROM : Joshua Scott Emmons
DATE : Mon Feb 18 18:36:29 2008

> Does anyone know why a wrapped NSTextField has a slightly larger 
> line spacing than NSTextView with the same font?
> What is a good way to predict the required string height for text 
> which will be drawn in a wrapped NSTextField?


Could it have something to do with typesetter behaviors?
http://lists.apple.com/archives/cocoa-dev/2006/Jan/msg00109.html

It could be that the pre-packaged NSLayoutManager that comes with an 
NSTextView has a different typesetter behavior than one that you 
freshly alloc for use with your NSTextField?


Just a guess,
-Joshua Emmons

Related mailsAuthorDate
mlLine Spacing: NSTextField ~10% > NSTextView for same font Jerry Krinock Feb 18, 06:24
mlRe: Line Spacing: NSTextField ~10% > NSTextView for same font Jerry Krinock Feb 18, 18:29
mlRe: Line Spacing: NSTextField ~10% > NSTextView for same font Joshua Scott Emmon… Feb 18, 18:36