text cut with an ellipsis to at most maxWidth px, measured as textWidth does. Text that fits comes back whole, and when not even the ellipsis fits the result is empty.
text
maxWidth
textcut with an ellipsis to at mostmaxWidthpx, measured as textWidth does. Text that fits comes back whole, and when not even the ellipsis fits the result is empty.