# Sandbox.TextStyle.WithWeight

```csharp
TextStyle WithWeight(int weight)
```

Returns a copy with a font weight from 1 to 1000.

### Parameters

- `weight` (`int`)

### Returns

`TextStyle`

Declared in [Sandbox.TextStyle](/api/Sandbox.TextStyle).
Assembly: `Sandbox.Engine`.
