Garry's Mod Wiki

Panel:GetTextSize

  number, number Panel:GetTextSize()

Description

Gets the size of the text within a Label derived panel.

Returns

1 number
The width of the text in the DLabel.
2 number
The height of the text in the DLabel.