At the moment I'm simply drawing my text of one font and size in a CTFrame. However I want to be able to have multiple different font and sized texts in the same CTFrame or whatever way would let me achieve the same effect.
I thought about making a CTRun for each type but I'm not sure how I can go about drawing them so it's like if I was to draw from a CTFrame.
Or a CTFrame for each type and just restructuring the path for each, but problem with this is even though I can get the end x and y points from a CTFrame I don't think I can get the height of individual glyphs. So I won't know how much to restructure the path by.
So how do I go about drawing multiple texts with different attributes?
I thought about making a CTRun for each type but I'm not sure how I can go about drawing them so it's like if I was to draw from a CTFrame.
Or a CTFrame for each type and just restructuring the path for each, but problem with this is even though I can get the end x and y points from a CTFrame I don't think I can get the height of individual glyphs. So I won't know how much to restructure the path by.
So how do I go about drawing multiple texts with different attributes?