I have two attributed strings: "A" and "."
I need to calculate the height of each of these lines. Currently, the return height is the same for both, it seems to return the maximum possible height for the highest character in a given font (even if that character is not in the line).
I would like to get the exact pixel height for each of these characters, so that I can resize around them, which is perfect for a character (glyph). I tried using CTFramesetterSuggestFrameSizeWithConstraints () and CTLineGetTypographicBounds (), but it returns a number similar to the attribute method of assignable strings.
Would thank for any tips on how to do this!
source share