Garry's Mod Wiki

Revision Difference

DTextEntry:SetFont#515153

<function name="SetFont" parent="DTextEntry" type="panelfunc">⤶ <ispanel>yes</ispanel>⤶ <description>Changes the font of the DTextEntry.</description>⤶ <realm>Client</realm>⤶ <args>⤶ <arg name="font" type="string">The name of the font to be changed to.</arg>⤶ </args>⤶ </function>⤶ ⤶ <example>⤶ <description>Restores the original font the the DTextEntry.</description>⤶ <code>⤶ local textentry = vgui.Create("DTextEntry")⤶ textentry:SetFont("DermaDefault")⤶ </code>⤶ ⤶ </example>