AsciiArt::Fonts
Built-in FIGlet fonts, embedded as raw .flf source at compile
time via the read_file macro. Each font is parsed lazily on
first use (parsing takes a few ms — no point doing it at startup
if the caller only ever uses one).
Fonts shipped in v0.1 (all under FIGlet's permissive licence, cf. data/fonts/<name>.flf header comments):
standard— the original FIGlet default, ~6 lines tall.small— compact 4-line version of standard.big— large, fat letters.slant— italic-style.banner— single-line banner using#characters.
Constants
FONT_SOURCES = {"standard" => {{ read_file("/tmp/tmp.elnOOJ/src/src/ascii_art" + "/../../data/fonts/standard.flf") }}, "small" => {{ read_file("/tmp/tmp.elnOOJ/src/src/ascii_art" + "/../../data/fonts/small.flf") }}, "big" => {{ read_file("/tmp/tmp.elnOOJ/src/src/ascii_art" + "/../../data/fonts/big.flf") }}, "slant" => {{ read_file("/tmp/tmp.elnOOJ/src/src/ascii_art" + "/../../data/fonts/slant.flf") }}, "banner" => {{ read_file("/tmp/tmp.elnOOJ/src/src/ascii_art" + "/../../data/fonts/banner.flf") }}}
Class methods
Returns the parsed FlfFont for the given built-in name.
Raises KeyError if the name is unknown — call available
to discover the valid names first.