Re: Apply Text To Curved Path
Re: Apply Text To Curved Path
- Subject: Re: Apply Text To Curved Path
- From: Emmanuel <email@hidden>
- Date: Tue, 7 Mar 2006 12:06:35 +0100
At 10:55 AM +0000 3/7/06, Simon Forster wrote:
What's the best method for applying text to a curved path? If it's
at all possible, I'd like to use something like Image Events rather
than Illustrator for speed and volume reasons.
Alternatively, has any brainiac got an algorithm for taking cut out
letters and working out by how much they should be rotated and what
the offset should be to make them appear in a smooth curve? (I can
get a tightly cropped letter and get its dimensions, what I need to
figure out is what the angle of rotation and offset should be.
Probably, I can get away with a rough approximation but if someone
has something sitting on their shelves...).
As I don't know where to start with such an algorithm, URLs to
vaguely relevant info would be much appreciated. (I was Googling for
a couple of hours last night and this morning but haven't found
anything t0o relevant yet).
Smile's graphic library may be a solution.
Here is the entry point:
<http://www.satimage-software.com/en/graphicss.html>
and here is an example where text follows a circle:
<http://www.satimage-software.com/en/graphics_sample_round_text.html>
To figure out the tilt angle, you do have to compute the derivative
of the curve in a way or another. If you're not familiar with that
kind of calculus, take a point of the curve (say, {x2, y2}) close to
the point where you are currently writing (say, {x1, y1}), compute
atan2(y2-y1, x2-x1) (requires Smile's computational stuff): that's
the tilt angle.
Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden