# font

> Font to use to display text. You cannot set this and FontDefinition.fontAsset at the same time.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.UIElements](/engine/6000.3/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public Font font { get; set; }
```
