Can someone post the code for the text() function with 5 params here please?

Hello all,

Can someone post the JAVA SOURCE code for the text() function with 5 params here please?

I need to modify it for my purpose.

For example I have a list of buttons (rectangles) and within each botton is a text of unknown length. Since I work with 5 params, I need to know how many line breaks there were and how high the text box is as a result. (e.g., text Quit, no line break, height 20; e.g. text “bla bla bla bla bla bla bla bla bla…..“, line breaks 4, height 44….).

I need the height so that I know, where I have to draw the next button in the list.

All complicate.

Thank you all.

Warm regards,

Chrisir

2 Likes

Thank you so much!

That’s great!

The link is correct, but it’s rather from line 4810 ff.

and then in 4829 text(String str, float x1, float y1, float x2, float y2) {