Skip to content

FigletLayoutMode

Namespace: Hex1b.Widgets

Assembly: Hex1b.dll

Specifies the layout mode used when composing FIGcharacters in a .

csharp
public enum FigletLayoutMode

Fields

Default

Use the layout mode declared by the font's header.

Returns: FigletLayoutMode

csharp
Default = 0

Fitted

Slide glyphs together until any non-space cells touch (kerning).

Returns: FigletLayoutMode

csharp
Fitted = 2

FullWidth

Concatenate glyphs at their natural width with no overlap.

Returns: FigletLayoutMode

csharp
FullWidth = 1

Smushed

Overlap glyphs by the maximum legal amount under the font's smushing rules.

Returns: FigletLayoutMode

csharp
Smushed = 3

Remarks

FIGfonts are rendered by placing one glyph after another and choosing how aggressively to overlap adjacent glyphs:

— no overlap; glyphs are concatenated at their natural width.

— glyphs slide together until any non-space cells touch (kerning).

— glyphs overlap by the maximum number of columns where every row pair can be merged using the active smushing rules.

— defer to the layout mode declared by the font itself.

The same enum is used for both horizontal and vertical layout. Vertical layout only applies when the input text contains explicit newlines or when produces multiple FIGlet rows.

Released under the MIT License.