Assigning a font to a Derma input

I’ve tried assigning a specific font to a Derma input, but it doesn’t really seem to work.
CharacterWindow.NameInput = vgui.Create( “DTextEntry”, CharacterWindow );
CharacterWindow.NameInput:SetPos( x + 5, y + 30 );
CharacterWindow.NameInput:SetSize( 200, 15 );
CharacterWindow.NameInput:SetFont( “BurmaInputFont” );
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 here at the Panel:SetFont 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.