Description:
Determines screen rectangle that would be drawn to using the Draw2dText(..) function with the same parameters.
Parameters:
- text
- Type: string
- text to measure.
- definitionPoint
- Type: Point2d
- either lower-left or middle of text.
- middleJustified
- Type: bool
- true=middle justified. false=lower-left justified.
- rotationRadians
- Type: double
- text rotation in radians
- height
- Type: int
- height in pixels (good default is 12)
- fontFace
- Type: string
- font name (good default is "Arial")
Returns:
Type: Rectangle
rectangle in the viewport's screen coordinates on success.
Available since:
5.10