Simple figlet like CLI. Only one font supported, it's faster though.
  • Odin 95.5%
  • Makefile 4.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Gary Moore 906e316095 inital commit plus a bit more
So this is the bubbletext library copied from otempl. It felt like a
generally useful thing to pull out by itself vs keeping it there. This
just wraps an extremely basic CLI around it, could be useful for
testing, or for replacing figlet somewhat.

Literally only one font supported, but should be possible to extend in
order to support multiple fonts, though some fonts have more features
than others. The fanciest thing supported here is smushing.
2026-09-10 15:56:59 +01:00
bubbletext inital commit plus a bit more 2026-09-10 15:56:59 +01:00
tools inital commit plus a bit more 2026-09-10 15:56:59 +01:00
.gitignore inital commit plus a bit more 2026-09-10 15:56:59 +01:00
ATTRIBUTIONS inital commit plus a bit more 2026-09-10 15:56:59 +01:00
IDEAS.txt inital commit plus a bit more 2026-09-10 15:56:59 +01:00
main.odin inital commit plus a bit more 2026-09-10 15:56:59 +01:00
Makefile inital commit plus a bit more 2026-09-10 15:56:59 +01:00
README inital commit plus a bit more 2026-09-10 15:56:59 +01:00

 __           __     __     __         __                __                __ __ 
|  |--.--.--.|  |--.|  |--.|  |.-----.|  |_.-----.--.--.|  |_ ______.----.|  |__|
|  _  |  |  ||  _  ||  _  ||  ||  -__||   _|  -__|_   _||   _|______|  __||  |  |
|_____|_____||_____||_____||__||_____||____|_____|__.__||____|      |____||__|__|
                                                                                 
---

This is a simple CLI that works kind of like figlet, takes a single string
command line argument, and returns an ASCII art version of that string. You can
see what that looks like above, the PR header was generated with this tool.

There are two primary limitations. It only supports this particular chunky
font, and it only renders text on a single line rather than wrapping. Might
address these issues in the future, but this is all I need for my purposes.

This code was created for the otempl project, which is my project template
generation tool thing. I didn't want to depend on figlet, so just implemented
the minimal slice I needed to get the wheels spinning.

Nice side effect of specialising specifically towards what you need rather than
a general solution, this is a good bit faster than figlet. It's also written in
Odin, so can just decide to use static allocation in the app.

Here, we just use memory we say we needed in .bbs and that's it.

Usage:

 ./bubbletext-cli "Some string"