@flowscripter/dynamic-cli-framework
    Preparing search index...

    Class DefaultAsciiBannerGeneratorService

    Service allowing a text string to be rendered using an ASCII banner font.

    Hierarchy (View Summary)

    Implements

    Index
    • Register a new font.

      The recommended way to load the font definition is to convert the font definition to a JSON string (replacing newlines with \n) and placing in a simple JSON file: { "font": "<figlet font definition>" }. This can then be imported as follows:

      import { font as myFont } from "./myfont.json" with { type: "json" };

      Parameters

      • fontName: string

        the name used to refer to the font.

      • fontDefinition: string

        the definition for the syntax conforming to the FIGfont format.

      Returns void