draw.SimpleTextOutlined

From Garry's Mod
Jump to: navigation, search
 draw.SimpleTextOutlined( )

Contents

Description

Creates a simple line of text that is outlined.

NOTE

This is a rendering function that requires a 2D rendering context.
This means that it will only work in hooks with a 2D rendering context.

Arguments

string Text

The text to draw.

Arguments

string font="DermaDefault"

The font name to draw with. See surface.CreateFont to create your own, or here for a list of default fonts.

Arguments

number x=0

The X Coordinate.

Arguments

number y=0

The Y Coordinate.

Arguments

table color=Color( 255, 255, 255, 255 )

The color of the text. Uses the Color structure.

Arguments

number xAlign=TEXT_ALIGN_LEFT

The alignment of the X Coordinate using TEXT_ALIGN_ Enums.

Arguments

number yAlign=TEXT_ALIGN_TOP

The alignment of the Y Coordinate using TEXT_ALIGN_ Enums.

Arguments

number outlinewidth

Width of the outline.

Arguments

table outlinecolor=Color( 255, 255, 255, 255 )

Color of the outline. Uses the Color structure.

Returns

number

The width of the text. Same value as if you were calling surface.GetTextSize.

Returns

number

The height of the text. Same value as if you were calling surface.GetTextSize.
Personal tools
Navigation