docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Monospacing

    Important

    This package is deprecated. From Unity 2023.2, TextMesh Pro is part of the Unity UI (uGUI) package. For current documentation, refer to TextMesh Pro in the Unity UI package.

    You can override a font's character spacing and turn it into a monospace font with the <mspace> tag. This gives all characters the same amount of horizontal space.

    You can specify the character width in pixels or font units.

    The </mspace> closing tag clears all monospace overrides.

    Example:

    Any font can become <mspace=2.75em>monospace, if you really want it.
    


    Treating a font as monospace

    In This Article
    Back to top
    Copyright © 2026 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)