Garry's Mod Wiki

Panel:GetFont

  string Panel:GetFont()

Description

Returns the name of the font that the panel renders its text with.

This is the same font name set with Panel:SetFontInternal.

Only works on Label and TextEntry and their derived panels by default (such as DLabel and DTextEntry), and on any panel that manually implemented the Panel:GetFont method.

Returns

1 string
The font name.