Garry's Mod Wiki

Panel:SetUnderlineFont

  Panel:SetUnderlineFont( string fontName )

Description

Sets the underlined font for use by clickable text in a RichText. See also Panel:InsertClickableTextStart

This function will only work on RichText panels.

Arguments

1 string fontName
The name of the font.

See here for a list of existing fonts. Alternatively, use surface.CreateFont to create your own custom font.