I\'m trying to draw text using Core Text functions, with a line spacing that\'s as close as possible to what it would be if I used NSTextView.
Take this font as an e
Have you looked to see what the sign of the value returned by CTFontGetDescent() is? A common mistake is to assume that descent values are positive, when in fact they tend to be negative (to reflect the fact that they are a descent below the font baseline).
As a result, line spacing should probably be set to
ascent - descent + leading