7

I need to programmatically draw something like this:-

curved text following a bezierpath line
(source: planetclegg.com)

Except that my UIBezierPath is closed & I need the text to fit inside it while following the curve. I have my path drawing correctly, the problem is the text. I've searched the 'net and read a bunch of tutorials but nothing seems to provide a solution. Is this possible in iOS, and if so how is it done? Links to relevant tutorials and/or code snippets would be much appreciated.

Community
  • 1
  • 1
Andrew Sumner
  • 323
  • 3
  • 8

2 Answers2

1

You can see the sample code in my Github, the ArcText.

NovemberEleven
  • 245
  • 3
  • 10
0

Someone just pointed me to this, which appears to answer my question: Curve text on existing circle

My apologies for the duplication.

Community
  • 1
  • 1
Andrew Sumner
  • 323
  • 3
  • 8
  • This is an old thread, but I'm doing some research. Your original question was about how to draw text along an arbitrary Bezier. Your self-answer is a link to a page that illustrates how to wrap text around a circle, which is a simpler problem. Did you find a solution to drawing text along a bezier path? – Duncan C Sep 30 '19 at 15:27