Return end coordinates in drawText

It would be very helpful if drawText (or another variant of it, or a new getTextCoord() analogous to getTextWidth()) returns the x, y coordinates at the end of the drawn text, in stead of/in addition to the height and width. Although the end x, y can be calculated from height & width when the text does not wrap, that is not the case with wrapping. Having ending x, y would be very helpful for drawing inline elements within long, wrapped text (in my case links in a web browser), and I suppose it shouldn’t be hard to get since the engine needs to layout text anyways?

1 Like