Skip to content

Class FigletFontAsset

A FIGlet font as an asset. A .flf file in the project imports as one, checked when it imports, so a field of this type takes the file directly. DarkEffekt.Terminal.Unity.FigletFontAsset.Font is the parsed font, for a DarkEffekt.Terminal.FigletText or a BigText element.

Declaration
[Icon("Packages/com.darkeffekt.terminal/Editor/Icons/Assets/FigletFontAsset.png")]
public sealed class FigletFontAsset : ScriptableObject

Inheritance: System.Object -> UnityEngine.Object -> UnityEngine.ScriptableObject

The parsed font, read from the asset’s data on first use and kept. Null for an asset with no data.

Declaration
public FigletFont Font { get; }

The rows in every glyph.

Declaration
public int Height { get; }

The rows from the top of a glyph down to and including the baseline.

Declaration
public int Baseline { get; }

The number of glyphs in the font.

Declaration
public int GlyphCount { get; }

The layout the font’s header asks for.

Declaration
public FigletLayout Layout { get; }

The direction the font’s header asks for.

Declaration
public FigletDirection Direction { get; }

The font’s comment block, where its author and terms are usually given.

Declaration
public string Comment { get; }

The folder, under any Resources folder, that the demo shell’s figlet command and the sample interface take their font from.

Declaration
public const string BundledFolder = "DarkEffektTerminal"

The first font found in DarkEffekt.Terminal.Unity.FigletFontAsset.BundledFolder, or null when there is none.

Declaration
public static FigletFont LoadBundled()

DarkEffekt.Terminal.FigletFont

The rows of text rendered in the font with its own layout. No rows for an asset with no data.

Declaration
public string[] Render(string text)

System.String[]

Type Name
System.String text

Makes an asset in memory from the bytes of a .flf file.

Declaration
public static FigletFontAsset Create(byte[] flf)

DarkEffekt.Terminal.Unity.FigletFontAsset

Type Name
System.Byte[] flf

System.FormatException
The data is not a FIGfont, or is a zip-compressed one.