Objective-C: if lineHeightMutiple, maximumLineHeight, minmumLineHeight do not work in some fonts, try setLineSpacing
1 min readJan 22, 2019
I experienced that the following codes do not work in some fonts — Padauk, Myanmar3 and maybe and so on.
NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];paragraphStyle.lineHeightMultiple = regularFont.pointSize * 1.2;paragraphStyle.maximumLineHeight = regularFont.pointSize * 1.5;paragraphStyle.minimumLineHeight = regularFont.pointSize * 1.5;
Change to:
[paragraphStyle setLineSpacing:10];