textExtents
fn
TextExtents textExtents(string text)Gets the precise bounding box of text.
Unlike measureText(), this returns the exact pixel extents including the offset from the origin.
Parameters
text | Text to measure |
Returns
TextExtents structure with bounding box information