Version: 2023.1
Language : English
Panel Text Settings assets
Examples

Fallback font

Each font asset has a limited number of characters. When you use a character that isn’t in the current font asset, TextCore searches the Fallback List until it finds a font asset with that character. The text element then uses that font asset to render the character.

You can set a list of fallback fonts to distribute fonts over multiple textures, or use different fonts for specific characters. It requires extra computing resources to search the list for missing characters and additional draw calls to use additional fonts.

You can use the same character for multiple font assets in the fallback list. Match the style of the characters in the fallback list to style of the main font asset as possible as you can.

Fallback font usage

In general, use fallback font assets to:

  • Work with languages that have large alphabets, such as Chinese, Korean, and Japanese. Use fallback fonts to distribute an alphabet across several assets.
  • Include special characters from other alphabets in your text.

Tips: Dynamic OS font assets are great candidates for fallback font assets.

Fallback font chain

You can create local and global fallback font asset lists. Set local font asset lists in the Font Assets property and set global font asset lists in Panel Text Settings. In addition to the fallback fonts, TextCore searches other assets, such as the default spriteA 2D graphic objects. If you are used to working in 3D, Sprites are essentially just standard textures but there are special techniques for combining and managing sprite textures for efficiency and convenience during development. More info
See in Glossary
asset, for missing glyphs. Together, these assets form the fallback chain.

The following is the asset order in the fallback chain:

  1. Local fallback font assets list
  2. Global fallback font assets list
  3. Default sprite asset
  4. Default font asset
  5. Missing glyphs characters

Additional resources

Panel Text Settings assets
Examples
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961