Represents a Figlet font.
Properties
Baseline
: intGets the font's baseline.
Count
: intGets the number of characters in the font.
Default
: FigletFontGets the default Figlet font.
Hardblank
: charGets the hardblank character used in this font's glyph definitions. Hardblanks are rendered as spaces in output but are treated as opaque (non-space) characters during fitting and smushing.
Height
: intGets the height of the font.
MaxWidth
: intGets the font's maximum width.
SmushingRules
: intGets the horizontal smushing rules encoded as bit flags (bits 0–5, values 1–32). A value of 0 means universal smushing (any two non-space characters smush, right wins).
Methods
public static FigletFont Load(Stream stream)
Loads a Figlet font from the specified stream.
Parameters:
stream (Stream)Returns:
The loaded Figlet font.
public static FigletFont Load(string path)
Loads a Figlet font from disk.
Parameters:
path (string)Returns:
The loaded Figlet font.
public static FigletFont Parse(string source)
Parses a Figlet font from the specified String.
Parameters:
source (string)Returns:
The parsed Figlet font.