UITextView和核心文字绘图
为什么多线之间的间距不同?
答案 0 :(得分:2)
易
CGFloat lineHeight = 17.0;
CTParagraphStyleSetting settings[2] = {
{ kCTParagraphStyleSpecifierMinimumLineHeight, sizeof(lineHeight), &lineHeight },
{ kCTParagraphStyleSpecifierMaximumLineHeight, sizeof(lineHeight), &lineHeight }
}