docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Fallback font assets

    A font atlas, and by extension a font Asset, can only contain a certain number of glyphs. The exact number depends on the font, the size of the atlas texture, and the settings you use when generating the atlas. The fallback font system allows you to specify other font assets to search when TextMesh Pro can't find a glyph in a text object's font Asset.

    This is useful in a variety of situations, including:

    • Working with languages that have very large alphabets (Chinese, Korean, and Japanese, for example). Use fallback fonts to distribute an alphabet across several assets.

    • Designing for mobile devices, where an imposed maximum texture size prevents you from fitting an entire set of glyphs in a single atlas of sufficient quality.

    • Including special characters from other alphabets in your text.

    Local and general fallback font assets

    Every font Asset can have its own list of fallback font assets. You set these in the font Asset properties.

    You can also set general fallback font assets that apply to every TextMesh Pro font Asset in your project. You set these in the TextMesh Pro settings.

    The fallback chain

    In addition to a text object's fallback fonts, TextMesh Pro searches several other assets for missing glyphs. Together, these assets form the fallback chain.

    The table below lists the assets in the fallback chain in the order in which they are searched.

    Position: Asset: Defined in: Notes:
    1 TextMesh Pro object's primary Font Asset Text object properties
    2 Primary font assets Fallback Font Assets Font Asset properties TexMesh Pro searches these assets in the order they're listed in the font Asset properties.

    The search is recursive, and includes each fallback Asset's fallback assets.
    3 Text object's Sprite Asset Text object properties When searching sprite assets, TextMesh Pro looks for sprites with an assigned unicode value that matches the missing character's unicode value.
    4 General Fallback Font Assets TextMesh Pro settings TexMesh Pro searches these assets in the order they're listed in the font Asset properties.

    The search is recursive, and includes each fallback Asset's fallback assets.
    5 Default Sprite Asset TextMesh Pro settings When searching sprite assets, TextMesh Pro looks for sprites with an assigned unicode value that matches the missing character's unicode value.
    6 Default Font Asset TextMesh Pro settings
    7 Missing glyphs character TextMesh Pro settings

    The fallback chain search is designed to detect circular references so each Asset in the chain is only searched once.


    Did you find this page useful? Please give it a rating:

    Thanks for rating this page!

    Report a problem on this page

    What kind of problem would you like to report?

    • This page needs code samples
    • Code samples do not work
    • Information is missing
    • Information is incorrect
    • Information is unclear or confusing
    • There is a spelling/grammar error on this page
    • Something else

    Thanks for letting us know! This page has been marked for review based on your feedback.

    If you have time, you can provide more information to help us fix the problem faster.

    Provide more information

    You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:

    You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:

    You've told us there is information missing from this page. Please tell us more about what's missing:

    You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:

    You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:

    You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:

    You've told us this page has a problem. Please tell us more about what's wrong:

    Thank you for helping to make the Unity documentation better!

    Your feedback has been submitted as a ticket for our documentation team to review.

    We are not able to reply to every ticket submitted.

    In This Article
    • Local and general fallback font assets
    • The fallback chain
    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)