Bug 899 : text(String, float, float, float, float) keep content from previous 'textBox'
Last modified: 2008-10-15 15:47



Assigned To:

Attachment Type Created Size Actions
Side by side comparison of code+sketch of 0135 and 0150 text display image/png 2008-10-15 15:30 53.87 KB

Description:   Opened: 2008-08-28 01:26
I have redone the bug scenario:


[color=#CC6600]String[/color] emptyString = [color=#CC0000]" "[/color],
longString=[color=#CC0000]"is that a bug? Because it's really
[color=#CC6600]PFont[/color] font;
[color=#996600]boolean[/color] swicth;

[color=#CC6600]void[/color] [color=#996600]setup[/color](){

[color=#996600]size[/color](560, 560);


[color=#CC6600]void[/color] [color=#996600]draw[/color](){


[color=#996600]text[/color](longString, 100, 100, 200, 100);
[color=#CC6600]else[/color] [color=#996600]text[/color](emptyString, 100,
100, 200, 100);


[color=#CC6600]void[/color] [color=#996600]mouseReleased[/color](){
swicth = !swicth;


LongString's second line appears when only displaying emptyString. That
doesn't happen if only using text(String, float ,float). Don't know if it's
a bug, but it looks like it.

I am using 0146 on intel mac with osx 10.5.4.
Additional Comment #1 From TM 2008-08-28 01:28
Sorry I though the code will appear like on the forum. Here it is again:

String emptyString = " ", longString="is that a bug? Because it's really
PFont font;
boolean swicth;

void setup(){

font= loadFont("SagarNormal-25.vlw");
size(560, 560);


void draw(){


if(!swicth) text(longString, 100, 100, 200, 100);
else text(emptyString, 100, 100, 200, 100);


void mouseReleased(){
swicth = !swicth;
Additional Comment #2 From fry 2008-08-28 06:18
Fixed for 0149.

Next time spare me the "really annoying" crap. I'm not a software company,
and you've just downloaded Processing for free. Nothing is more "annoying"
or demotivating for me than people whining about stuff that I'm giving away
and supporting in my free time.
Additional Comment #3 From TM 2008-08-28 07:04
Sorry, didn't mean to annoy you or whine, I was just trying to find how to redo the 'bug' and put
that without really thinking. It was more for my program than for processing that I found it
"annoying in my program".

Sorry again, I know your not a company and that's it's all free. I am really embarrassed about it
now. Your software is really amazing and help me learning a lot on coding. I am a real fan of
your software and promote/talk-about it every time I can. (If I could I would buy you a drink).

I won't do it again
Additional Comment #4 From ajstarks 2008-10-15 15:30
Side by side comparison of code+sketch of 0135 and 0150 text display

The way text wraps to a rectangle does not seem correct. Have the semantics
changed with 0149+?
Additional Comment #5 From fry 2008-10-15 15:47
this particular bug has been fixed, please file a new one with your report.