Sg2.9
Use of text
Recent RSS
Use of text
From:  wouter
Date:  23. February 2006, 15:49

Could someone please explain how to use text in scriptographer 0.1?
there is no basic script in the documentation that I can use as a starting point.

basicly:
how do I add text to the canvas?
how do I change the appearance (font / size / weight)?

  • ---

if there is anything I can do for this site (the new one) let me know,.. I am an able xhtml/css/php/mysql scripter and graphic design student

later,

wouter

From:  
Date:  24. February 2006, 09:47

thanx Simon,

I found your work-around (letters on layers) on your blog. Will give that a try :)

Re: Use of text
From:  Wouter
Date:  27. February 2006, 10:22

ok, so far I got this.. and it works, but not really pretty, because it will create a copy of the letter on the same layer on wich the letter resides. What I would like for it to do, is create a new layer and put all text on that.

// output text
var distance = 80; // monospace, could also be the width of object
var text = "hello world";

function output_text(){
    var length = text.length;
    distance1 = distance;
    for(var i=0; i<length; i++){
        if(text.charAt(i)==" "){
            distance1 = distance1+distance;
        } else {
            var obj1 = layers[text.charAt(i)].firstChild;
            var obj2 = obj1.clone();
            obj2.transform(new Matrix().translate(distance1,0));
            distance1 = distance1+distance;
        }
    }
}

output_text();
Re: Use of text
From:  Jonathan_
Date:  27. February 2006, 15:35

Een Nederlander!

Volgens Juerg komt de nieuwe versie van Scriptographer binnenkort uit, dus je kan daar ook nog even op wachten. Die heeft (o.a.) complete text support.

Re: Use of text
From:  Jürg Lehni
Date:  28. February 2006, 09:30

...and sooner than you might have hoped:

http://www.scriptographer.com/forum/viewtopic.php?p=282#282

; )

Re: Use of text
From:  Wouter
Date:  28. February 2006, 13:21
Jonathan_ wrote:
Een Nederlander! Volgens Juerg komt de nieuwe versie van Scriptographer binnenkort uit, dus je kan daar ook nog even op wachten. Die heeft (o.a.) complete text support.

hey Jonathan, had niet verwacht hier een Nederlander tegen te komen!
Maar even snel CS2 installeren dan (arme student ;)

Anyway. Thnx for the heads up Lehni :)

Re: Use of text
From:  
Date:  28. February 2006, 16:42

Je hebt geen cs2 nodig.. Er is ook een versie voor CS1 beschikbaar.

Ik zie op je site dat je mee hebt gedaan aan de workshop van m'n vriendin Luna
Wat een toeval altijd!

Re: Use of text
From:  Wouter
Date:  28. February 2006, 19:49

nee, maar ik werk nog met Illustrator 10..

Jonathan Puckey dus? Ik moet zeggen dat jullie poster voor NEST mijn aanleiding was om scriptographer eens op te zoeken :)

ik moet mijn portfolio maar weer eens updaten (zal het filmpje van het project van Luna en Roel ook online zetten dan)

Re: Use of text
From:  
Date:  1. March 2006, 13:01

Ach zo.. Illustrator 10.. Tsja, dat wordt inderdaad upgraden dan!

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
The Allineatorium 15.05.14