Font size with DLabel?

Can i set the font size of a DLabel?

No, but you can change the font to a bigger one. **[Panel.SetFont

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Panel.SetFont)** and http://wiki.garrysmod.com/?title=Working_with_Fonts.

That sets the font of all text in the panel, Sparky-Z. You could also just do something like this:
( I am using Trebuchet24 from working_with_fonts )

[lua]
function MyMenu()
local menu = vgui.Create( “DFrame” )
menu:SetSize( 500, 500 )
menu:Center()
menu:SetDraggable( false )
menu:ShowCloseButton( true )
menu:MakePopup()

local text = vgui.Create( “DLabel”, menu )
text:SetText( “Text here” )
text:SetPos( 20, 20 )
text:SetFont( “Trebuchet24” )
text:SetTextColor( Color( 255, 255, 255, 255 ) )
end
[/lua]
With that way, you can set the font of each DLabel seperatly.

Woops, my bad. I thought I had put DLabel.SetFont .