docs.unity3d.com
    Show / Hide Table of Contents

    Monospacing

    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

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023