FONScontextInternal.getTextBounds

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).

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

Meta