FontFallback class
Global fallback font chain. When a glyph is missing in the primary font, fonts in this chain are tried in order.
public static class FontFallbackPublic Members
Section titled “Public Members”| name | description |
|---|---|
| static FallbackChain { get; } | Gets the current fallback chain as a read-only snapshot. |
| static Locale { get; set; } | Gets or sets the locale hint for font fallback, which decides CJK script priority on backends that resolve fallback by locale; null means the system default (CurrentUICulture). |
| static AddFallback(…) | Adds a font family to the end of the fallback chain. |
| static AddFallbacks(…) | Adds multiple font families to the end of the fallback chain. |
| static ClearFallbacks() | Removes all entries from the fallback chain. |
| static InsertFallback(…) | Inserts a font family at the specified index in the fallback chain. |
| static OrderCjkByLocale(…) | Returns CJK font families ordered by locale priority. All four variants (KR, JP, SC, TC) are always included - the locale only determines which appears first. |
| static RemoveFallback(…) | Removes a font family from the fallback chain. |
| static SetFallbacks(…) | Atomically replaces the entire fallback chain. Preferred over multiple Add/Remove calls to avoid intermediate cache invalidations. |
See Also
Section titled “See Also”- namespace Aprillz.MewUI.Rendering