A Python Script to list all of pyFiglet’s Installed Fonts – for Reticulum and NomadNet

Well, I got tired of manually checking Figlet ASCII-rendered fonts to see if they work in NomadNet browsers, because they are *very* picky about what characters they’ll display, and also needed a way to auto-generate titles for the Model Lists on TWDB Nomad (52ff111b4501e29d592b9601808a1866:/page/twdb.mu). Two birds, one stone:

[code]

#!/usr/bin/env python3
##############################################
# figlet.mu (make executable)
#
# Lists installed pyFiglet fonts with samples.
# The shown fonts directory is where you can
# add more Figlet fonts.
#
# Install pyFiglet:
# pip install pyfiglet
#
# munk.org
#
##############################################
#### Grab modules
import os
import pyfiglet
from pyfiglet import Figlet

#### Define page and font colors
page_BG_color = “fff”
page_FG_color = “000”

#### Lets list the fonts
figlet = Figlet()
fonts = figlet.getFonts()
fonts = sorted(fonts)
font_out = “”
for font in fonts:
font_out += f”>>>`F{page_BG_color}”+font+”`f\n\n”
figlet = Figlet(font=str(font), width = 200)
figout = figlet.renderText(‘Testing 123’)
strip_bad = figout.replace(“`”, “‘”)
if strip_bad.startswith(“>”):
font_out += “^”+strip_bad[1:]+”\n\n”
else:
font_out += strip_bad+”\n\n”

# This shows the internal directory where built-in fonts are stored
font_path = os.path.dirname(pyfiglet.__file__) + “/fonts/”

#### and now we print it out
print(f”’`B{page_BG_color}`F{page_FG_color}
>>`F{page_BG_color}Pyfiglet Fonts Lister for NomadNet`f

This Python script pulls the list of fonts in pyFiglet’s font directory and lists them with examples (after substituting some characters that break Micron).
When viewed in a NomadNet browser, you can see which fonts actually work in Micron’s rendering.

Current pyFiglet Fonts Directory:
{font_path}

>>`F{page_BG_color}My pyFiglet Font List`f
{font_out}

`f`b`a
”’)

[/code]

See it in action here:
52ff111b4501e29d592b9601808a1866:/page/code/figlet.mu

Updated: June 3, 2026 — 11:23 am

1 Comment

Add a Comment
  1. beep boop

    \\\\\\\\

    _

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Your post must include a link to this post.

How does this work?
Write a response on your own website and include a link to this post. Then submit your response’s URL here. Your response may appear here after moderation. To update or remove it, edit or delete your original post and submit the same URL again. Learn more about Webmentions.