# FontAutoSize

> Automatic font sizing settings for the Advanced Text Generator.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.TextCore](/engine/6000.7/script-reference/unityengine/textcore.md)
* **Assembly:** UnityEngine.TextCoreTextEngineModule

```csharp
public struct FontAutoSize
```

## Fields

| Value                                                                                   | Description                                                                                                                                                                                                                                                |
| --------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [enabled](/engine/6000.7/script-reference/unityengine/textcore/fontautosize/enabled.md) | Shrink or grow the font size between [\_minSize](/engine/6000.7/script-reference/unityengine/textcore/fontautosize/minsize.md) and [\_maxSize](/engine/6000.7/script-reference/unityengine/textcore/fontautosize/maxsize.md) so the text fits the extents. |
| [maxSize](/engine/6000.7/script-reference/unityengine/textcore/fontautosize/maxsize.md) | Maximum font size, in pixels.                                                                                                                                                                                                                              |
| [minSize](/engine/6000.7/script-reference/unityengine/textcore/fontautosize/minsize.md) | Minimum font size, in pixels.                                                                                                                                                                                                                              |

## Constructors

| Constructor                                                                                                                           | Description                        |
| ------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------- |
| [FontAutoSize(System.Boolean,System.Single,System.Single)](/engine/6000.7/script-reference/unityengine/textcore/fontautosize/ctor.md) | Creates automatic sizing settings. |

## Static Properties

| Property                                                                                | Description                                                      |
| --------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| [Default](/engine/6000.7/script-reference/unityengine/textcore/fontautosize/default.md) | Automatic sizing disabled, with a size range of 0 to 100 pixels. |
