Font.measureText

class Font
public nothrow @nogc nothrow @nogc
measureText
(
const(char)[] s
,,)

Return Value

Type: box2i

Where a line of text will be drawn if starting at position (0, 0). Note: aligning vertically with this information is dangerous, since different characters may affect vertical extent differently. Prefer the use of getHeightOfx().

Meta