Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet thread from rec.arts.ascii, started 27 Apr 1995.
 _   _                     _        _             _     _           
| | | |___  ___ _ __   ___| |_     / \   _ __ ___| |__ (_)_   _____ 
| | | / __|/ _ \ '_ \ / _ \ __|   / _ \ | '__/ __| '_ \| \ \ / / _ \
| |_| \__ \  __/ | | |  __/ |_   / ___ \| | | (__| | | | |\ V /  __/
 \___/|___/\___|_| |_|\___|\__| /_/   \_\_|  \___|_| |_|_| \_/ \___|
Info: bigfig #1-intro [1 of 3]

Info: bigfig #1-intro [1 of 3]

rec.arts.ascii · 2 messages · 27 Apr 1995
Glenn Chappell <cha...@MATH.UIUC.EDU> ASCII art 27 Apr 1995 00:00 · permalink · report
What's the number one complaint about figlet? That its output is too
small, of course! ;-) To remedy this horrible deficiency, I offer, for
your enjoyment, "bigfig". This is an "sh" (Unix Bourne Shell) script,
along with a font, that, together, can triple the size of figlet output.
This is done by piping figlet output through figlet again, but using a
different font the second time -- a mono-spaced font designed
specifically for use with the script.

The script, "bigfig", is in the next message, with subject
"bigfig #2-script".

The font, "bigfig.flf" is in the message after that, with subject
"bigfig #3-font".

Here are some examples:

% echo Hi, y\'all! | figlet -c
                        _   _ _           _       _ _ _
                       | | | (_)    _   _( ) __ _| | | |
                       | |_| | |   | | | |/ / _` | | | |
                       |  _  | |_  | |_| | | (_| | | |_|
                       |_| |_|_( )  \__, |  \__,_|_|_(_)
                               |/   |___/
% echo Hi, y\'all! | bigfig -c


                           ___         ___   ___
                         |     |     |      /   \
                         |     |     |     (     )
                         |     |     |      \___/
                         |     |     |     |     |
                         |     |     |     |     |
                         |     | ___ |     |     |
                         |                 |     |
                         |                 |     |
                         |       ___       |     | ___
                         |     |     |     |      /   \
                         |     |     |     |     (     )
                         | ___ |     | ___ | ___  \   /
                                                 |   /
                                                 |  /
                                                 | /


                             ___                     ___   ___   ___
                            /   \                  |     |     |     |
                           (     )                 |     |     |     |
           ___         ___  \   /     ______   ___ |     |     |     |
         |     |     |     |   /     /       \     |     |     |     |
         |     |     |     |  /     /              |     |     |     |
         |     |     |     | /     /     ___       |     |     |     |
         |     |     |     |     |      /    |     |     |     |     |
         |     |     |     |     |     (     |     |     |     |     |
         |     | ___ |     |     |      \___ |     |     |     | ___ |
           \               |       \               |     |      /   \
            \              |        \              |     |     (     )
             \______ /     |         \______ / ___ | ___ | ___  \___/
            |            /
            |           /
            | _________/
% echo yo | figlet -cf lean


                               _/    _/    _/_/
                              _/    _/  _/    _/
                             _/    _/  _/    _/
                              _/_/_/    _/_/
                                 _/
                            _/_/
% echo yo | bigfig -cf lean












                    /                 /                 /     /
                   /                 /                 /     /
               ___/              ___/              ___/  ___/
                 /                 /           /                 /
                /                 /           /                 /
            ___/              ___/        ___/              ___/
              /                 /           /                 /
             /                 /           /                 /
         ___/              ___/        ___/              ___/
                 /     /     /                 /     /
                /     /     /                 /     /
            ___/  ___/  ___/              ___/  ___/
                          /
                         /
                     ___/
           /     /
          /     /
      ___/  ___/

Get the idea?

                                Glenn Chappell   <><
                                e-mail: gg...@uiuc.edu
                                or cha...@math.uiuc.edu

This message contains the script "bigfig". Notes on how to use it are in
the script itself. In short: install the font "bigfig.flf", make the
script "bigfig" executable, then use bigfig exactly the same way you'd
use figlet.

An explanation of what bigfig does can be found in the previous message,
with subject "bigfig #1-intro".

The font, "bigfig.flf" is in the next message, with subject
"bigfig #3-font".

                                Glenn Chappell   <><
                                e-mail: gg...@uiuc.edu
                                or cha...@math.uiuc.edu

------------------------------>8 Cut Here 8<------------------------------
#!/bin/sh -
# bigfig by Glenn Chappell <gg...@uiuc.edu>
# 26 Apr 1995
#
# Enlarges figlet output 3X (or more).
# Requires "bigfig.flf" (or some other mono-spaced figlet font).
#
# Usage:
# Use just like figlet, e.g., instead of "figlet -cf small", type
# "bigfig -cf small".
#
# Requires figlet 2.1 or later for -t & -w options.
# Uses 80 cols in figlet 2.0.
#
# Note: You can avoid this script completely if you want.  Just type
# figlet -w27 -f myfavoritefont | figlet -f bigfig

FONT="bigfig"
FACTOR=3

# In general, FONT should be the name of a *mono-spaced* figlet font,
# and FACTOR should be the width of its characters.  The usual settings
# are
#
# FONT="bigfig"
# FACTOR=3
#
# but any mono-spaced figlet font can be used.  For example, if you
# have the Kirk/Gras "3x5" font, you can achieve a very different
# effect by changing the above two lines to
#
# FONT="3x5"
# FACTOR=4
#
# Similarly, to use von Laudermann's "lcd" font, change the lines to
#
# FONT="lcd"
# FACTOR=6
#
# Both of these fonts (3x5.flf and lcd.flf) are available by anonymous
# FTP from "ftp.nicoh.com". Look in the directory "pub/figlet/fonts".

# Set up PATH so figlet can be found
DIRSAVE=`pwd`
cd `(dirname "$0") 2>/dev/null`
PATH="$PATH":`pwd`
cd "$DIRSAVE"

# Get figlet version
FIGLETVERSION=`figlet -I1 2>/dev/null`
if [ -z "$FIGLETVERSION" ]; then
  FIGLETVERSION=20000
fi

if [ $FIGLETVERSION -lt 20100 ]; then
  # figlet 2.0
  # WID below is the screen width (figlet 2.0 only).
  WID=80
  SWITCH=""
else
  # figlet 2.1 or later
  WID=`figlet $* -I4`
  SWITCH="-L"
fi

WID2=`expr \( $WID - 1 \) / $FACTOR + 1`
if [ $WID2 = 1 ]; then
  WID=1000
fi
figlet $* -w$WID2 | figlet -w$WID -f"$FONT" $SWITCH

About this thread. These messages were posted publicly to the newsgroup rec.arts.ascii in 1995 and are mirrored here unchanged as part of the Historic Archives – only email addresses are masked. The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can. Are you one of the authors? Contact us to get your posts attributed, connected to your artist profile, or removed.

Report this message

Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.

Help classify this post