We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › Follow the path of any text
Page Index Toggle Pages: 1
Follow the path of any text ? (Read 317 times)
Follow the path of any text ?
Jan 30th, 2009, 6:17pm
 
Hello,

Is there a library to load a font, write a text and then get the coordinates of this text?

I found http://ricardmarxer.com/geomerative/ and http://processing.org/hacks/doku.php?id=hacks:fontoutline#demo-usage

BUT

I get the outline of a string of the text , and I need the path of the text .

I try to make this :

http://img181.imageshack.us/img181/7672/screenet4.jpg

Any idea plz ?


Re: Follow the path of any text ?
Reply #1 - Jan 30th, 2009, 6:39pm
 
You are not the first wanting that... You might find related posts in the forum.

In any case, you won't have a simple path (eg. a straight line for "l") but a more or less complex curve outlining the shape of the letter.

A good advice seen in one of these older threads is to draw the text in an image buffer, then read the pixels to see if a coordinate is above the text.

Or, like others, just define the paths yourself! Smiley
Page Index Toggle Pages: 1