• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Apply Text To Curved Path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Apply Text To Curved Path
      • From: Simon Forster <email@hidden>
    • Re: Apply Text To Curved Path
      • From: Simon Forster <email@hidden>
References: 
 >Apply Text To Curved Path (From: Simon Forster <email@hidden>)

  • Prev by Date: Re: Is there a way to script drag-and-drop?
  • Next by Date: Fwd: Apply Text To Curved Path
  • Previous by thread: Apply Text To Curved Path
  • Next by thread: Re: Apply Text To Curved Path
  • Index(es):
    • Date
    • Thread