Core Text: Render to an Odd Shape

后端 未结 2 718
孤城傲影
孤城傲影 2021-01-06 09:54

I am trying to render text to a shape that isn\'t a rectangle. The following code works when I add a rectangular path but not when I add an elliptical path. Ultimately, I\

相关标签:
2条回答
  • 2021-01-06 10:13

    http://lists.apple.com/archives/quartz-dev/2010/Mar/msg00049.html

    The problem was documentation bug. The function does not support non-rectangular path currently. I hope it'll be implemented soon, but it is not yet.

    0 讨论(0)
  • you can draw on any sort of UIBeizerPath, sample code here: https://github.com/erica/iOS-5-Cookbook/tree/master/C10/19-Drawing%20onto%20Paths

    0 讨论(0)
提交回复
热议问题