I have a receipt of say 200x200px. I want to write inside a text using CTFramesetterCreateFrame and kCTParagraphStyleSpecifierFirstLineHeadIndent. the big problem is that if I want for example to write this is the text with kCTParagraphStyleSpecifierFirstLineHeadIndent = 198 then I will have :
t
his is the text
the CTFramesetterCreateFrame cut the word this ... i want instead to have
.
this is the text
how do?
The concise change you need to make to your existing code:
This change ensures that the first line of text is not cut off when using
CTFramesetterCreateFramewith a specified first-line head indent. Adjust theindentvalue as needed to achieve the desired result.