Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Manipulate Text into Shape?
#26
(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
where src*Y are the two horizontals, and the *BendCoeffs are the mathematical formulas of the envelope paths.

(*) which is the hard part since it requires to solve a cubic equation
Reply


Messages In This Thread
RE: How to Manipulate Text into Shape? - by Ofnuts - 12-18-2017, 01:56 PM

Forum Jump: