|
Author |
Topic: Problem with Text (Read 287 times) |
|
Ride215
|
Problem with Text
« on: Apr 8th, 2004, 2:48am » |
|
I can't seem to display text onto the screen. I tried the very basic example of text and there just doesnt seem to be anything displayed, and I made sure that the font was in the data part of my folder. There is no error displayed, just no text (this is taken from the examples section): size(200, 200); background(0); stroke(153, 153, 0); BFont fontA = loadFont("Meta-Bold.vlw.gz"); // Set the font and its size (in units of pixels) textFont(fontA, 44); int y = 15; // Horizontal position of the type int l = 35; // Leading (spaces between lines) line(y, 60, width, 60); text("Research", y, 60); line(y, 60+l, width, 60+l); text("Modern", y, 95); line(y, 60+l*2, width, 60+l*2); text("Typography", y, 130); fill(204, 204, 0); textSize(2; text("in", 152, 50);
|
|
|
|
arielm
|
Re: Problem with Text
« Reply #1 on: Apr 8th, 2004, 11:44am » |
|
try to use fill(255), (stroke() is not relevant here...)
|
Ariel Malka | www.chronotext.org
|
|
|
|