FIGlet Fonts Collection

repository·master·Indexed 41 days ago

https://github.com/cmatsuoka/figlet-fonts

A comprehensive collection of FIGlet fonts used to create ASCII art banners. Includes standard distribution fonts, CJK (Chinese-Japanese-Korean) fonts for FIGlet 2.2, Commodore 64 and MS-DOS fonts, and the Obanner font designed to replicate the UNIX banner(6) command.

Tokens
1.1K
Snippets
2
Records
9
Agent score
48%

What's inside FIGlet Fonts

  1. Overview of FIGlet fonts repository

    master
    This repository serves as a comprehensive collection of FIGlet fonts. It includes standard distribution fonts, classic contributed fonts (originally from ftp.figlet.org), and newer fonts from the JavE project. The collection is organized into several categories based on origin and style, such as C64, MS-DOS, international, and specific command-line tool distributions like TOIlet.
  2. Understand the Obanner font concept

    master
    Obanner is a FIGlet font based on the standard UNIX banner(6) command by Mark Horton (1993). It is intended to replicate the 'original' banner style, distinguishing it from the default banner font shipped with FIGlet. The font is provided in various sizes; the number at the end of the filename (e.g., Obanner80) indicates the intended output width of the original banner command (e.g., banner -w 80).
  3. How to use the Obanner font with FIGlet

    master

    To use the Obanner font, you must specify the font name (e.g., Obanner16) and set the width flag to -w 1. Because banner(6) produces vertical output with one character per row, using a width greater than 1 will result in unexpected output.

    To achieve the most accurate replication of the original banner(6) output, you should also use the -A flag and pipe the output through a Perl command to strip trailing whitespace.

    # Standard usage
    figlet -f Obanner16 -w 1 -A foo
    
    # Most accurate replication (stripping trailing whitespace)
    figlet -f Obanner16 -w 1 -A foo | perl -p -e 's/^\s+$//'
  4. Generate accurate Obanner output with FIGlet

    master

    Because banner(6) produces vertical output (one character per row), you must use the -w 1 flag when using Obanner fonts in FIGlet. To achieve exact replication of the original banner output, you should use the -A flag and strip trailing whitespace using a tool like perl to account for FIGlet's design constraints.

    # Standard usage for Obanner
    figlet -f Obanner16 -w 1 -A foo
    
    # For exact replication of banner(6) output
    figlet -f Obanner16 -w 1 -A foo | perl -p -e 's/^\s+$//'
  5. Browse FIGlet font categories

    master

    The repository organizes fonts into the following categories:

    • C64-fonts: Commodore 64 fonts converted by David Proper.
    • Obanner: The font of the UNIX banner(6) command by Mark Horton.
    • Obanner-canon: Banner font in selected sizes.
    • bdffonts: X Window System BDF fonts converted to FIGlet.
    • cjkfonts: Chinese-Japanese-Korean fonts converted from X.
    • contributed: Classic contributed fonts from ftp.figlet.org.
    • international: International and fantasy fonts.
    • jave: New fonts collected by Markus Gebhard of JavE.
    • ms-dos: MS-DOS specific fonts.
    • ours: Standard distribution fonts.
    • toilet: Sam Hocevar's TOIlet standard distribution fonts.
    • tlf-contrib: Contributed fonts in TLF format.
  6. Available CJK controlfiles

    master

    The CJK package includes controlfiles to handle character mapping and encoding transformations:

    • unshift: Maps 94 x 94 font in GR space (0xA1A1 - 0xFEFE) to GL space (0x2121 - 0x7E7E).
    • iso2022: Strips off ISO 2022 character set information from 94 x 94 character sets.
    • big5: Maps Taiwan Big-5 character set to CNS.
  7. Available CJK fonts in the FIGlet 2.2 CJK package

    master

    The CJK (Chinese-Japanese-Korean) package for FIGlet 2.2 provides several fonts converted from X fonts. These fonts are categorized by language, encoding, and character grid size:

    Chinese

    • gb16fs: Chinese fang song ti font (16 x 16 characters, GB2312 encoding)
    • gb16st: Chinese song ti font (16 x 16 characters, GB2312 encoding)
    • cns: Traditional Chinese font (40 x 40 characters, CNS encoding with 0x010000 added to plane 1 and 0x020000 added to plane 2 characters)