# Text

{% stepper %}
{% step %}
Example of how not to do it. If in the future, inside Unity, using an algorithm or manually, we want to set this text component to the value "1000000000", it will not fit and will get out of bounds.

<div align="left"><figure><img src="https://2984772752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkuaUq8tEWwJhxzG3UU27%2Fuploads%2FpM5Umo9SlD23PYiY22bW%2Fimage.png?alt=media&#x26;token=4440c599-4250-4189-8122-107c76949d09" alt="" width="563"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
Example of the correct size for a text component.

<div align="left"><figure><img src="https://2984772752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkuaUq8tEWwJhxzG3UU27%2Fuploads%2FmKX8yk0TdW5ESpCSy8Ww%2Fimage.png?alt=media&#x26;token=692b8a94-25ee-48a3-9893-cc9d66540701" alt="" width="563"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
The rendering principles for fonts in Figma and Unity differ, so **you may need** to **make adjustments** to your **font file** in Unity (for example, **margins** from the edges) if you're using **TextMeshPro** to achieve an identical look.

{% hint style="info" %}
If you're using **UI.Text**, adjustments cannot be made, so it is recommended to use **TextMeshPro**.
{% endhint %}
{% endstep %}

{% step %}
If you don’t want to make any changes to the Figma layout or the font file, you can enable the "**Auto-Size**" option in the "[**TEXT & FONTS**](https://da-assets.gitbook.io/docs/fcu-for-developers/text-and-fonts)" tab in the asset settings. This option is enabled by default.

In this case, if the text doesn’t fit, its size will be automatically reduced.\
The maximum size will be the size you set in Figma.
{% endstep %}
{% endstepper %}
