textExtents

fnTextExtents 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

textText to measure

Returns

TextExtents structure with bounding box information