The OpenD Programming Language

textBounds

Measures the specified text string. Parameter bounds should be a float[4], if the bounding box of the text should be returned. The bounds value are [xmin, ymin, xmax, ymax] Returns the horizontal advance of the measured text (i.e. where the next character should drawn). Measured values are returned in local coordinate space.

nothrow @trusted @nogc
float
textBounds
(
T
)
(,
float x
,
float y
,
const(T)[] str
,
float[] bounds
)
if (
isAnyCharType!T
)

See Also

Meta