Garry's Mod Wiki




font [string]

The font source. Custom font files are stored in resource/fonts/.

The length is limited to 31 characters maximum.

This must be the actual 'nice' font, not a file name. (Finding the Font Name)

This also cannot be an already registered font, i.e. you cannot base your font from any of the Default Fonts

Default: "Arial"

extended [boolean]

Allow the font to display glyphs that are outside of the Latin-1 range. Unicode code points above 0xFFFF are not supported.

Default: false

size [number]

The font height in pixels

Range: 4 - 255

Default: 13

weight [number]

The font boldness

Default: 500

blursize [number]

The strength of the font blurring

Range: 0 - 80

Default: 0

scanlines [number]

The "scanline" interval Must be > 1 to work. This setting is per blursize per font - so if you create a font using "Arial" without scanlines, you cannot create an Arial font using scanlines with the same blursize

Default: 0

antialias [boolean]

Smooth the font

Default: true

underline [boolean]

Add an underline to the font

Default: false

italic [boolean]

Make the font italic

Default: false

strikeout [boolean]

Add a strike through

Default: false

symbol [boolean]

Enables the use of symbolic fonts such as Webdings

Default: false

rotary [boolean]

Seems to add a line in the middle of each letter

Default: false

shadow [boolean]

Add shadow casting to the font

Default: false

additive [boolean]

Additive rendering

Default: false

outline [boolean]

Add a black outline to the font.

This does not work well with antialias, and only allows black 1-pixel outlines. It may be preferable to not use this parameter, and instead use draw.SimpleTextOutlined when drawing text that you want outlined.

Default: false