How would I set the Line Height or Line Spacing in an NSTextView (i.e. how tall each line is, or how much space is between each line)?
How would I set the Line Height or Line Spacing in an NSTextView (i.e.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the
- (void)setDefaultParagraphStyle:(NSParagraphStyle *)paragraphStylemethod in your NSTextView.Documentation on NSParagraphStyle
Documentation on NSMutableParagraphStyle
There is a
setLineSpacing:method in NSMutableParagraphStyle. There are also methods relating to line height, the methods under “Setting Other Style Information” in the NSMutableParagraphStyle documentation should prove useful.I think that’s what you’re looking for.