Garry's Mod Wiki

DTextEntry:SetFont

  DTextEntry:SetFont( string font )

Description

Changes the font of the DTextEntry.

Arguments

1 string font
The name of the font to be changed to.

Example

Restores the original font the the DTextEntry.

local textentry = vgui.Create("DTextEntry") textentry:SetFont("DermaDefault")