GlyphSet
ConsoleMonster.Glyphs
The built-in glyph sets. GlyphSet.Full needs a modern font (Cascadia, JetBrains Mono, DejaVu); GlyphSet.Basic stays inside the WGL4 repertoire that Consolas and Lucida Console cover; GlyphSet.Ascii is printable ASCII only.
Inheritance
- object
- GlyphSet
Usage
Explore 4 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 4
- Method GlyphSet.For
- Property GlyphSet.Ascii
- Property GlyphSet.Basic
- Property GlyphSet.Full
Methods
public static GlyphSet For(GlyphTier tier) #Returns the built-in set for a tier.
Parameters
- tier ConsoleMonster.Capabilities.GlyphTier
- The tier.
public string Get(Glyph glyph) #Returns a semantic glyph.
Parameters
- glyph ConsoleMonster.Glyphs.Glyph
- The glyph name.
Returns
string The text (may be wider than one cell, for example tree prefixes or ASCII ellipsis).public BoxGlyphs GetBox(BoxStyle style) #Returns border glyphs, falling back to a style the tier can show.
Parameters
- style ConsoleMonster.Glyphs.BoxStyle
- The requested style.
public string HorizontalFill(int eighths) #A partial horizontal block for eighths of a cell (1-8), or empty when the tier cannot show it.
Parameters
- eighths int
- Filled eighths, 1-8.
Returns
string The glyph, or an empty string.public string StatusMarker(StatusKind status) #The marker shown for a status. Full and Basic return one symbol; Ascii returns a bracketed word such as [OK] so status stays readable without colour.
Parameters
- status ConsoleMonster.Styling.StatusKind
- The status.
Returns
string The marker text.public string VerticalFill(int eighths) #A partial vertical block for eighths of a cell (1-8), or empty when the tier cannot show it.
Parameters
- eighths int
- Filled eighths, 1-8.
Returns
string The glyph, or an empty string.Inherited Methods
Properties
public static GlyphSet Full { get; } #Braille, eighth blocks and rounded corners. Needs Cascadia, JetBrains Mono, DejaVu, Menlo or similar.
public static GlyphSet Basic { get; } #Box drawing, shades and half blocks from the WGL4 repertoire (Consolas, Lucida Console).
public static GlyphSet Ascii { get; } #Printable ASCII only; statuses become bracketed words.
public bool SupportsBraille { get; } #Whether braille patterns (U+2800-U+28FF) render reliably.
public IReadOnlyList<string> VerticalRamp { get; } #Vertical levels from empty (index 0) to full (last index), used by sparklines.