Garry's Mod Wiki

draw.SimpleTextOutlined

  number, number draw.SimpleTextOutlined( string Text, string font = "DermaDefault", number x = 0, number y = 0, table color = Color( 255, 255, 255, 255 ), number xAlign = TEXT_ALIGN_LEFT, number yAlign = TEXT_ALIGN_TOP, number outlinewidth, table outlinecolor = Color( 255, 255, 255, 255 ) )

Description

Creates a simple line of text that is outlined.

This is a rendering function that requires a 2d rendering context.

This means that it will only work in 2d Rendering Hooks.

Arguments

1 string Text
The text to draw.
2 string font = "DermaDefault"
The font name to draw with. See surface.CreateFont to create your own, or here for a list of default fonts.
3 number x = 0
The X Coordinate.
4 number y = 0
The Y Coordinate.
5 table color = Color( 255, 255, 255, 255 )
The color of the text. Uses the Color.
6 number xAlign = TEXT_ALIGN_LEFT
The alignment of the X Coordinate using TEXT_ALIGN enum.
7 number yAlign = TEXT_ALIGN_TOP
The alignment of the Y Coordinate using TEXT_ALIGN enum.
8 number outlinewidth
Width of the outline.
9 table outlinecolor = Color( 255, 255, 255, 255 )
Color of the outline. Uses the Color.

Returns

1 number
The width of the text. Same value as if you were calling surface.GetTextSize.
2 number
The height of the text. Same value as if you were calling surface.GetTextSize.