• How to change the font in a panel?
    3 replies, posted
How can I change the font in a panel? Panel:SetFont() either isnt working or doesn't exist. Also can I create the font with surface.CreateFont() or not?
To create text you usually use labels. DLabel supports SetFont.
This is the [URL="http://wiki.garrysmod.com/page/surface/CreateFont"]surface.CreateFont()[/URL] syntax. To set the font of a panel use panel:SetFont("Font"). Hope this helps!
You regulary just want to set the font of the items that uses text, such as buttons and labels. Almost all elements should have SetFont since most derive off Label.
Sorry, you need to Log In to post a reply to this thread.