How to create a multiline string or multiline label as a CGPath in iOS?
问题 Does the API support this? If not, how could I do it? There is CTFontCreatePathForGlyph in Core Text, which can translate a single character into a path. I could use that in a loop to create my string as a path, but I'd have to deal with spacing and kerning and all the other nasty things. I'm looking for a string path that would looks the same if it was drawn in a UILabel with same font and size. 回答1: There is an article called Low-level text rendering by Ohmu that covers this pretty