Font Tools

cfonts – generate colourful terminal text banners

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 in action

cfonts

cfonts is written in Rust. Learn Rust with our recommended free books and free tutorials.


Related Software

Font Viewers
fontpreviewSearch and preview fonts
GNOME FontsView fonts on your system
fntsamplePDF and PostScript font samples generator
cfontsCommand line tool for sexy ANSI fonts
Opcion Font ViewerJava based font viewer
mojiSearch, download, convert and inspect fonts
SitraGet fonts from online sources
fontvuerCross-platform font viewer
Font ViewerView and install fonts
TTFviewerUtility for viewing and inspecting TrueType fonts
LipiInstall fonts from Google Fonts GitHub Repo
qfontviewerFont viewer with an integrated character table
KFontviewView and install different types of fonts

Read our verdict in the software roundup.


Best Free and Open Source Software 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.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted