---
id: "T:cAlgo.API.FontWeight"
kind: "enum"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/Styles/FontWeight/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# FontWeight (enum)

Specifies the weight or thickness of the font.

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public enum FontWeight
```

## Examples

C#:

```csharp
var panel = new StackPanel { HorizontalAlignment = HorizontalAlignment.Left, VerticalAlignment = VerticalAlignment.Top };
panel.AddChild(new TextBlock { Text = "EURUSD", FontWeight = FontWeight.Bold });
panel.AddChild(new TextBlock { Text = "Bid / Ask", FontWeight = FontWeight.Light });
Chart.AddControl(panel);
```

Python:

```python
panel = StackPanel()
panel.HorizontalAlignment = HorizontalAlignment.Left
panel.VerticalAlignment = VerticalAlignment.Top
title = TextBlock()
title.Text = "EURUSD"
title.FontWeight = FontWeight.Bold
subtitle = TextBlock()
subtitle.Text = "Bid / Ask"
subtitle.FontWeight = FontWeight.Light
panel.AddChild(title)
panel.AddChild(subtitle)
api.Chart.AddControl(panel)
```

## Values

- `FontWeight.Thin` — The thin font.
- `FontWeight.ExtraLight` — The extra light font.
- `FontWeight.UltraLight` — The ultra light font.
- `FontWeight.Light` — The light font.
- `FontWeight.Normal` — The normal font.
- `FontWeight.Regular` — The regular font.
- `FontWeight.Medium` — The medium font.
- `FontWeight.DemiBold` — The demibold font.
- `FontWeight.SemiBold` — The semibold font.
- `FontWeight.Bold` — The bold font.
- `FontWeight.ExtraBold` — The extra bold font.
- `FontWeight.UltraBold` — The ultra bold font.
- `FontWeight.Black` — The black font.
- `FontWeight.Heavy` — The Heavy font.
- `FontWeight.ExtraBlack` — The Extra black font.
- `FontWeight.UltraBlack` — The ultra black font.

