Font.measureText

class Font
nothrow @nogc nothrow @nogc
box2i
measureText
(
StringType
)
(
StringType 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