FigletFont

Represents a Figlet font.

Represents a Figlet font.

Properties

Baseline : int

Gets the font's baseline.

Count : int

Gets the number of characters in the font.

Default : FigletFont

Gets the default Figlet font.

Hardblank : char

Gets 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 : int

Gets the height of the font.

MaxWidth : int

Gets the font's maximum width.

SmushingRules : int

Gets 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)
The stream to load the Figlet font from.

Returns:

The loaded Figlet font.

public static FigletFont Load(string path)

Loads a Figlet font from disk.

Parameters:

path (string)
The path of the Figlet font to load.

Returns:

The loaded Figlet font.

public static FigletFont Parse(string source)

Parses a Figlet font from the specified String.

Parameters:

source (string)
The Figlet font source.

Returns:

The parsed Figlet font.