API Reference
SymbolFallback
What emoji and special symbols become on glyph tiers that cannot show them: ✅ is √ on the Basic tier and [OK] on ASCII, ⚠️ is !, ❌ is × or x, ➜ is → or ->. Applied to text that goes through markup or rich text (widget labels, titles, table cells, log lines) before it is measured, so widths stay right. The Full tier shows the text as written. Apps add or change entries with SymbolFallback.Register.
Inheritance
- Object
- SymbolFallback
Methods
public static String Apply(String text, GlyphTier tier) #StringReplaces the known symbols in a text for a tier. On the Basic and ASCII tiers it also drops emoji variation selectors and joiners that would be left alone.
Parameters
- text System.String
- The text.
- tier ConsoleMonster.Capabilities.GlyphTier
- The glyph tier.
Returns
The text for that tier.
public static StyledText Apply(StyledText text, GlyphTier tier) #StyledTextApplies the fallback to every span of styled text.
Parameters
- text ConsoleMonster.Text.StyledText
- The styled text.
- tier ConsoleMonster.Capabilities.GlyphTier
- The glyph tier.
Returns
The text for that tier (the same instance when nothing changed).
public static Void Register(String symbol, String basic, String ascii) #VoidAdds or replaces the fallback for a symbol.
Parameters
- symbol System.String
- The symbol as written (an emoji with or without its variation selector).
- basic System.String
- What the Basic tier shows.
- ascii System.String
- What the ASCII tier shows.
public static Boolean TryGet(String symbol, GlyphTier tier, out String fallback) #BooleanThe fallback of a symbol for a tier.
Parameters
- symbol System.String
- The symbol.
- tier ConsoleMonster.Capabilities.GlyphTier
- The glyph tier.
- fallback System.String
- The text to show instead (the symbol itself on the Full tier).
Returns
Whether the symbol has an entry.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public static Boolean Enabled { get; set; } #Whether the fallback is applied (default true).