(12-18-2017, 11:15 AM)Espermaschine Wrote: I was wondering.... when i was a teenager (so before personal computers, lol) i used a grid technique to enlarge images with pen and paper.
It must be possible to draw text to a warped grid that has the required curvature with the Bezier Tool as long as its simple text.
This is more or less how these scripts work, for a point at a given (x,y) they compute a relative position of that Y between the top and bottom horizontals, then find the Yt and Yb coordinates of the envelope paths for that given X(*), and compute the new absolute Y using these two coordinates and the relative position of the initial Y. In my script:
Code:
yRelative=(y-srcTopY)/(srcBotY-srcTopY)
bendTopY=findYforX(topBendCoeffs,x,'top')
bendBotY=findYforX(botBendCoeffs,x,'bottom')
bentY=bendTopY+(bendBotY-bendTopY)*yRelative
(*) which is the hard part since it requires to solve a cubic equation