# Sandbox.TextStyle.TextStyle

## Overload 1

```csharp
TextStyle()
```

Creates TextStyle.Default: white, 16px Roboto with normal weight and top-left alignment.
Unlike default(TextStyle), this constructor initializes the font and layout settings.

## Overload 2

```csharp
TextStyle(string fontName, float fontSize)
```

A white style with the given font family and size in pixels.

### Parameters

- `fontName` (`string`)
- `fontSize` (`float`)

## Overload 3

```csharp
TextStyle(string fontName, float fontSize, Color color)
```

A style with the given font family, size in pixels and color.

### Parameters

- `fontName` (`string`)
- `fontSize` (`float`)
- `color` (`Color`)

Declared in [Sandbox.TextStyle](/api/Sandbox.TextStyle).
Assembly: `Sandbox.Engine`.
