sdsmtuas / LabAI

Apache License 2.0
0 stars 0 forks source link

Wrap text in the display #21

Closed ConradSelig closed 4 years ago

ConradSelig commented 4 years ago

We'll need to wrap text in a variety of containers.

Input should include x, y, w, h, and text size.

Text that absolutely cannot fit should be truncated.

ConradSelig commented 4 years ago

Turns out this is much easier than I recall, either they've added some functionality sense I've last worked on this - or I just didn't know how to do my research in the olden days.

Here is the processing command for wrapping text:

text("Lorem Ipsum", x, y, w, h);

Just like that. It will automatically cut text that does not fit in the box.