I've tried assigning a specific font to a Derma input, but it doesn't really seem to work.
[lua]
CharacterWindow.NameInput = vgui.Create( "DTextEntry", CharacterWindow );
CharacterWindow.NameInput:SetPos( x + 5, y + 30 );
CharacterWindow.NameInput:SetSize( 200, 15 );
CharacterWindow.NameInput:SetFont( "BurmaInputFont" );
CharacterWindow.NameInput:MakePopup();
[/lua]
That's what I got this far.
Any help is appreciated.
I believe fonts for Derma are assigned through the skin of the element.
SetFont only works for specific VGui elements. Take a look [b][url=http://wiki.garrysmod.com/?title=Panel.SetFont]here at the Panel:SetFont[/url][/b] page.
You could make your own skin for Derma, with custom fonts for controls. Though dynamically changing fonts throughout a form is beyond my knowledge.
Sorry, you need to Log In to post a reply to this thread.