各フォントアセットの文字数には制限があります。現在のフォントアセットにない文字を使用する場合、TextCore はその文字を持つフォントアセットを見つけるまで Fallback List (フォールバックリスト) を検索します。テキスト要素はそのフォントアセットを使って文字を描画します。
フォールバックフォントのリストを設定して、複数のテクスチャにフォントを提供したり、特定の文字に異なるフォントを使用したりすることができます。これには、欠落している文字をリストで検索するための余分な計算リソースと追加のフォントを使うための追加のドローコールが必要です。
フォールバックリストでは、複数のフォントアセットに同じ文字を使用できます。フォールバックリストの文字のスタイルを、できる限りメインフォントアセットのスタイルに合わせてください。
一般に、フォールバックフォントアセットは以下の場合に使用します。
ヒント: ダイナミック OS フォントアセットは、フォールバックフォントアセットに適しています。
ローカルおよびグローバルのフォールバックフォントアセットリストを作成できます。Font Assets プロパティ でローカルフォントアセットリストを設定し、Panel Text Settings でグローバルフォントアセットリストを設定します。フォールバックフォントに加えて、TextCore は、デフォルトのスプライトアセットなどの他のアセットも検索して、グリフが見つからないかどうかを調べます。これらのアセットがフォールバックチェーンを形成します。
フォールバックチェーンのアセットの順序は以下の通りです。
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
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.