---
id: "P:cAlgo.API.Control.FontFamily"
kind: "property"
type: "T:cAlgo.API.Control"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/Control/FontFamily/"
---

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

# Control.FontFamily

Member of [Control](https://help.ctrader.com/ctrader-algo/references/Controls/Control/index.md).

## FontFamily

Gets or sets the font family.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Accepted without error but never displayed, so control events such as Click are never raised.
- Cloud: Accepted without error but never displayed, so control events such as Click are never raised.

C#:

```csharp
public string FontFamily {get; set;}
```

Python:

```python
control.FontFamily: str
```

### Returns

`string` — 

### Examples

C#:

```csharp
var textBlock = new TextBlock { Text = Symbol.Bid.ToString(), FontFamily = "Consolas", FontSize = 16 };
Chart.AddControl(textBlock);
```

Python:

```python
textBlock = TextBlock()
textBlock.Text = str(api.Symbol.Bid)
textBlock.FontFamily = "Consolas"
textBlock.FontSize = 16
api.Chart.AddControl(textBlock)
```

