# Sandbox.Gizmo.GizmoDraw.ScreenText

## Overload 1

```csharp
void ScreenText(string text, Vector2 pos, string font = Roboto, float size = 12, TextFlag flags = 33)
```

Draw text

### Parameters

- `text` (`string`)
- `pos` (`Vector2`)
- `font` (`string`), default `Roboto`
- `size` (`float`), default `12`
- `flags` (`TextFlag`), default `33`

## Overload 2

```csharp
void ScreenText(Scope text, Vector2 pos, TextFlag flags = 33)
```

Draw text with a text rendering scope for more text rendering customization.

### Parameters

- `text` (`Scope`)
- `pos` (`Vector2`)
- `flags` (`TextFlag`), default `33`

## Overload 3

```csharp
void ScreenText(string text, Vector3 worldPos, Vector2 offset, string font = Roboto, float size = 12, TextFlag flags = 33)
```

Draw text on screen at a 3d position

### Parameters

- `text` (`string`)
- `worldPos` (`Vector3`)
- `offset` (`Vector2`)
- `font` (`string`), default `Roboto`
- `size` (`float`), default `12`
- `flags` (`TextFlag`), default `33`

## Overload 4

```csharp
void ScreenText(Scope text, Vector3 worldPos, Vector2 offset, TextFlag flags = 33)
```

Draw text on screen at a 3d position with a text rendering scope for more text rendering customization.

### Parameters

- `text` (`Scope`)
- `worldPos` (`Vector3`)
- `offset` (`Vector2`)
- `flags` (`TextFlag`), default `33`

## Overload 5

```csharp
void ScreenText(Scope text, Rect rect, float angle, TextFlag flags = 33)
```

Draw text at an angle

### Parameters

- `text` (`Scope`)
- `rect` (`Rect`)
- `angle` (`float`)
- `flags` (`TextFlag`), default `33`

Declared in [Sandbox.Gizmo.GizmoDraw](/api/Sandbox.Gizmo.GizmoDraw).
Assembly: `Sandbox.Engine`.
