change font size

i was wondering if i can change fonts when using a derma button? and if so how

[editline]8th May 2015[/editline]

also does anybody know if there like is like a IfResoution() == 1920x1080?

surface.CreateFont( “TeamN”, {
font = “Tahoma”,
size = ScreenScale( 96 ),
weight = 500
} )


I know how to create a font but i dont know how to use it in a Derma Button

I may be able to give help here but could you explain a bit more about what you plan to do?

DLabel/SetFont DButton is derived from DLabel, so you can call this function on a DButton object.

MyDButton:SetFont( “YourAwesomeFont” )

on which part? the font size or the resolution