I wish to draw text along a given vector (which might be anything - not necessarily elliptical or straight). The text must be remain tangential to the curve, like in this example.
The way to do it along some simple equation (a straight or elliptic line) is relatively simple in Java. However, this would be complicated in MATLAB:
- converting every character to an image using insertText() or vision.TextInserter
- computing the coordinates of each character in a straight line
- computing an adequate transformation using TFORM
- applying it for each character using imwarp()
Since the code is going to create at least thousands of images, each one with several characters, and will include other rendering operations, I am looking for a simpler/more economical way.
Moreover, this provides no solution in the case of a general vector.
Any suggestions? Adding libraries is not a problem if this can solve the problem.