New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text( str, x1, y1, x2, y2 ) displays nothing if the string has a space as the first character #3761

Closed
solchant opened this Issue Sep 3, 2015 · 3 comments

Comments

Projects
None yet
3 participants
@solchant

solchant commented Sep 3, 2015

@ Processing 3.0b5

The five parameter text function (String,int,int,int,int) does not display anything to the screen if the first character in the argument string is a space char (" ").

Code snippet:

void setup() { fullScreen(); }
void draw () {
  background( 0 );
  text( "this one displays" , 100 , 100 , 100 , 100 );
  text( " this one does not" , 100 , 250 , 100 , 100 );
}

Works on P2, however.

@colouredmirrorball

This comment has been minimized.

Show comment
Hide comment
@colouredmirrorball

colouredmirrorball Sep 3, 2015

In addition text following a "\n" gets ignored.

colouredmirrorball commented Sep 3, 2015

In addition text following a "\n" gets ignored.

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Sep 3, 2015

Member

Already fixed by @JakubValtar for beta 6.

screen shot 2015-09-03 at 1 35 49 pm

Member

benfry commented Sep 3, 2015

Already fixed by @JakubValtar for beta 6.

screen shot 2015-09-03 at 1 35 49 pm

@benfry benfry closed this Sep 3, 2015

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Sep 3, 2015

Member

See also #3736

Member

benfry commented Sep 3, 2015

See also #3736

@benfry benfry added the duplicate label Sep 3, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment