Font.textSize

Wraps TTF_SizeUNICODE to get the size of a rendered text in the dsdl2.ttf.Font

  1. uint[2] textSize(string text)
  2. uint[2] textSize(wstring text)
    class Font
    const @trusted
    uint[2]
    textSize
    (
    wstring text
    )

Parameters

text wstring

rendered wstring text to get the size of

Return Value

Type: uint[2]

the size of the rendered text (width and height)

Throws

dsdl.SDLException if unable to get text size

Meta