# font

> The font to use for rendering. If null, the default font for the current GUISkin is used instead.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.IMGUIModule

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

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    // Prints name of the font that button is using.

    void OnGUI()
    {
        Debug.Log("Font name: " + GUI.skin.button.font.name);
    }
}
```
