docs.unity3d.com
    Show / Hide Table of Contents

    Font

    You can switch to a different font using <font="fontAssetName">.

    The font you specify replaces the default font until you insert a closing <font> tag. Font tags can be nested.

    You can also use the material attribute to switch between different materials for a single font. Font and material assets must be placed in specified in the TextMesh Pro settings Asset.

    To revert to the default font:

    • Close all open font tags using </font> tag
    • Use another <font> tag and set the font Asset name to default

    Example:

    Would you like <font="Impact SDF">a different font?</font> or just <font="NotoSans" material="NotoSans Outline">a different material?
    


    Mixing fonts and materials

    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