2010-05-19 71 views
0

我如何知道两行之间的大小是多少? 我正在使用CoreText API。CoreText:行间距

+0

[核心文本中的行距如何工作? (为什么它不同于NSLayoutManager?)](http://stackoverflow.com/questions/5511830/how-does-line-spacing-work-in-core-text-and-why-is-it-different- from-nslayoutm) – mohsenr 2012-05-17 20:45:44

+0

看看http://stackoverflow.com/questions/5511830/how-does-line-spacing-work-in-core-text-and-why-is-it-different-from-nslayoutm 。 – mohsenr 2012-05-17 20:46:12

回答

2

尝试CTFontGetLeading(aCTFont)。

+0

你有什么想法,为什么它总是可以返回0? – 2011-02-15 10:00:51

+0

领先可以是零。 – cxa 2011-02-18 09:27:56