10. Extensions

You can customize Monodraw by providing custom FIGlet fonts and character palettes. In both cases, you need to place files in special folders and relaunch Monodraw.

10.1. FIGlet Fonts

To add a new FIGlet font, you will need two files: a manifest file, describing the font and the font file itself (.flf). The manifest file provides the name and globally unique identifier of the font. Note that fonts are referenced by their identifier, thus if you add any custom fonts, you need to ensure any recipients of monopics using the custom fonts also have the same manifest.

  1. From the menu bar, select Extras > Reveal Fonts Folder...
  2. Copy the font manifest file (JSON file with .mflist extension) into the revealed folder, see example below.
  3. Copy the FIGlet font file (.flf) into the revealed folder.
  4. Quit and relaunch Monodraw.
example-fonts.mflist
{
        "version": 1,
        "fonts": [
                {
                        "id": "com.example.figlet-font.name",
                        "name": "Example Name",
                        "type": 1,
                        "path": "figlet-font-filename.flf"
                }
        ]
}

10.2. Character Palettes

Custom character plattes are defined by a simple JSON file, see example below. The identifier needs to be globally unique.

  1. From the menu bar, select Extras > Reveal Characters Folder...
  2. Copy the characters palette file (.json) into the revealed folder.
  3. Quit and relaunch Monodraw.
char-palette.example.json
{
        "id": "com.example.char-palette.test",
        "name": "Example Palette",
        "characters": [
                { "char": "!" },
                { "char": "#" },
                { "char": "$" },
                { "char": "%" }
        ]
}