2010-05-19 46 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