cfonts is a command line utility for transforming text into decorative banners constructed from terminal characters. It can be used to create headings for command line applications, shell scripts, login messages and terminal dashboards.
The software differs from conventional font utilities in that it does not require the installation of additional typefaces. Instead, it constructs enlarged lettering from predefined character patterns and applies colour using ANSI escape sequences. Developers can also incorporate its output into their own applications without invoking a separate command.
This is free and open source software.
Key Features
- Thirteen built-in lettering styles, including block, chrome, slick, shade, grid, tiny and three-dimensional designs.
- Supports uppercase letters, digits and a range of punctuation characters.
- Apply different colours to individual components of multicoloured lettering styles.
- Supports named ANSI colours, the terminal’s default colour and custom hexadecimal RGB values.
- Generate gradients between selected colours.
- Transition gradients that interpolate colours across multiple specified colour stops.
- Calculate gradients separately for each line rather than across the complete banner.
- Configurable background colours, including transparent backgrounds.
- Left, centre and right alignment, together with top and bottom positioning.
- Adjustable character spacing, line spacing and optional surrounding padding.
- Automatically determines the terminal width, with an option to specify a maximum output width.
- Use the vertical bar character to insert explicit line breaks in the input.
- Raw terminal mode uses carriage return and line feed sequences instead of standard line feeds.
- Generate HTML output as an alternative to ANSI-formatted terminal output.
- Detects the terminal’s colour capabilities, with manual overrides using environment variables.
- Programmatic interfaces for generating and displaying formatted text.
- Cross-platform support – runs on Linux and macOS.
Website: github.com/dominikwilkowski/cfonts
Support:
Developer: Dominik Wilkowski
License: GNU General Public License v3.0


cfonts is written in Rust. Learn Rust with our recommended free books and free tutorials.
Related Software
| Font Viewers | |
|---|---|
| fontpreview | Search and preview fonts |
| GNOME Fonts | View fonts on your system |
| fntsample | PDF and PostScript font samples generator |
| cfonts | Command line tool for sexy ANSI fonts |
| Opcion Font Viewer | Java based font viewer |
| moji | Search, download, convert and inspect fonts |
| Sitra | Get fonts from online sources |
| fontvuer | Cross-platform font viewer |
| Font Viewer | View and install fonts |
| TTFviewer | Utility for viewing and inspecting TrueType fonts |
| Lipi | Install fonts from Google Fonts GitHub Repo |
| qfontviewer | Font viewer with an integrated character table |
| KFontview | View and install different types of fonts |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.