I've created a CGPath from a glyph using CoreText's CTFontCreatePathForGlyph
. Thanks to this SO post, I also have access to all the CGPoint in my CGPath as an array, which I can .filter()
and .map()
to my needs (I seek to translate certain points which match a position criteria). On the other hand, I am unable to convert said array back to a CGPath, which I need to do in order to graphically render the changes.
How could I go about this issue? Is there a better way of achieving this?
Thank you.
PS: Because I'm eventually going to convert said CGPaths to UIBezierPaths, feel free to use a UIBezierMethod if applicable.