docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Font Size

    Use the <size> tag to adjust the font size of your text.

    You can specify the new size in pixels (px), font units (em), or percentages (%).

    Pixel adjustments can be absolute (5px, 10px, and so on) or relative (+1 or -1, for example). Relative sizes are based on the original font size, so they're not cumulative.

    Font unit adjustments are always relative to the original font size. For example, <size=1em> sets the font size to the original size, <size=2em> doubles the size, and <size=0.5em> halves it.

    Example:

    <size=100%>Echo <size=80%>Echo <size=60%>Echo <size=40%>Echo <size=20%>Echo
    

    Example image
    Adjusting font size

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)