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

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

# ChartText.FontFamily

Member of [ChartText](https://help.ctrader.com/ctrader-algo/references/Chart/Drawings/ChartText/index.md).

## FontFamily

Gets or sets the font style of the text.

Environments: Desktop supported · CLI works differently · Cloud works differently.

- CLI: Created and kept with all its properties, but never drawn: the CLI displays no chart.
- Cloud: Created and kept with all its properties, but never drawn: the cloud displays no chart.

C#:

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

Python:

```python
chartText.FontFamily: str
```

### Returns

`string` — 

Available since cAlgo.API 5.2.

### Examples

C#:

```csharp
var text = Chart.DrawText("label", "High", Bars.OpenTimes.LastValue, Bars.HighPrices.LastValue, Color.White);
text.FontFamily = "Arial";
Print("Text font family: {0}", text.FontFamily);
```

Python:

```python
text = api.Chart.DrawText("label", "High", api.Bars.OpenTimes.LastValue, api.Bars.HighPrices.LastValue, Color.White)
text.FontFamily = "Arial"
api.Print(f"Text font family: {text.FontFamily}")
```

