Search code examples
ioscore-text

How do I determine the of a CTLine following a CTLine


I have a CTLine and I can get the typographic bounds, but that does not tell me how much space there will be after this line and before the next.

Do I have to go through the paragraph styles and determine the maximum paragraph spacing after this line through that, or is there a simpler approach to determine the offset one would use with CTTypesetterCreateLineWithOffset?


Solution

  • Answer: there is no public CoreText function that calculates this. You have to calculate it yourself unforunately.