Sg2.9
Conversion to paths question...
Recent RSS
Conversion to paths question...
From:  Lynn
Date:  26. February 2011, 17:28

Hi - I have just poked into here, wondering if I can do something in Scriptographer. I would like to convert fonts to paths, but NOT using the outline, using the fill part. In other words, the fill of the font not the stroke. I know it sounds weird, but it's for an art project that requires simpler paths for fonts than the outlines provide.

Could I write such a thing in Scriptographer - select text, and covert to paths that trace the body of the font, instead of the outline?

Thanks...
Lynn

Re: Conversion to paths question...
From:  Felix
Date:  10. March 2011, 13:13

Hi Lynn,
I am also interested in converting text to paths, but I would take the outlines, too ;-)
So is there a way to convert text to paths anyway?

Thank you,
Felix

Re: Conversion to paths question...
From:  Felix
Date:  11. March 2011, 12:51

OK, I found out that createOutline() is the right function to convert Text into Paths. But I have strange bug, I think.

This is my code:

var position = new Point(100,-100); 
var textItem = new PointText(position);
textItem.content = "1234";
textItem.characterStyle.font  = app.fonts["Arial"];
var outline = textItem.createOutline();
outline.fillColor = new CMYKColor(1, 0, 0, 0);

and this is the result:

looks like if the character gets a shift (2 becomes 0, 3 bekomes 1 etc.)

I am using (Mac OS X 10.6.6 Illustrator CS 5 (15.0.2) and Scriptographer 2.9.070)

I will post this also under Bug.

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Parallel Arrangement 07.04.12