Font.textSize - multiple declarations
Function Font.textSize
Wraps TTF_SizeUTF8
to get the size of a rendered text in the Font
uint[2] textSize
(
string text
) @trusted const;
Parameters
Name | Description |
---|---|
text | rendered string text to get the size of |
Returns
the size of the rendered text (width and height)
Throws
dsdl
if unable to get text size
Function Font.textSize
Wraps TTF_SizeUNICODE
to get the size of a rendered text in the Font
uint[2] textSize
(
wstring text
) @trusted const;
Parameters
Name | Description |
---|---|
text | rendered wstring text to get the size of |
Returns
the size of the rendered text (width and height)
Throws
dsdl
if unable to get text size