AsciiFont class

Paints text using Noir's built-in multi-row terminal alphabet.

Inheritance

Constructors

AsciiFont(String text, {Key? key, AsciiFontFamily family = AsciiFontFamily.tiny, Color color = Color.white, List<Color>? colors, Color? backgroundColor, TextHighlight? selection})
Configures naturally sized ASCII-art text.
const

Properties

backgroundColor → Color?
Optional fill behind the complete natural font box.
final
color → Color
Solid glyph color when colors is absent.
final
colors → List<Color>?
Palette for tagged multi-color fonts, with the first color as fallback.
final
family → AsciiFontFamily
Font table used to rasterize text.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how this widget replaces another of the same type.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selection → TextHighlight?
Optional UTF-16 source selection mapped across complete glyphs.
final
text → String
Source text; unsupported characters use the font's space width.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited