FigletGlyph
Namespace: Hex1b.Widgets
Assembly: Hex1b.dll
Represents a single FIGcharacter (large ASCII-art glyph) in a FIGfont.
public sealed class FigletGlyphInheritance
Object → FigletGlyph
Constructors
FigletGlyph(IReadOnlyList<string>)
Initializes a new instance of the class.
Parameters:
rows(IReadOnlyList<String>): The glyph rows (one string per row of sub-characters).
public FigletGlyph(IReadOnlyList<string> rows)Properties
Height
Gets the height of this glyph in rows. Always equals the parent font's .
Returns: Int32
public int Height { get; }Rows
Gets the rows of sub-characters that make up this glyph.
Returns: IReadOnlyList<String>
public IReadOnlyList<string> Rows { get; }Width
Gets the maximum row width across this glyph in code units. Individual rows may be shorter and should be treated as if padded with spaces by renderers.
Returns: Int32
public int Width { get; }Methods
GetRow(int)
Gets the row at the specified index.
Parameters:
row(Int32): The zero-based row index.
Returns: String
The row string. May be shorter than .
public string GetRow(int row)Remarks
A glyph is a fixed-height block of sub-characters. Every glyph in a given has the same height (the font's ) but rows may have different widths. Glyphs are obtained from a font through .
Sub-characters in the rows include normal printable characters along with the font's character. Hardblanks render as spaces but participate in horizontal layout differently than ordinary spaces — see the FIGfont 2.0 specification.
The property reports the maximum number of code units across all rows. Individual rows may be shorter; renderers should treat shorter rows as if padded with spaces.