Click here to Skip to main content
Licence CPOL
First Posted 26 Nov 2008
Views 7,760
Downloads 51
Bookmarked 5 times

VBScript version of Figlet

By Prasad Khandekar | 26 Nov 2008
A complete VBScript implementation of FIGlet

1

2

3
2 votes, 66.7%
4
1 vote, 33.3%
5
4.14/5 - 3 votes
μ 4.14, σa 1.01 [?]

Introduction

This program is a VBScript implementation of a popular freeware FIGlet. It is a program that generates text banners in a variety of typefaces comprised of letters made up of smaller ASCII characters.

Background

In Spring 1991 inspired by the e-mail signature of Frank Sheeran and goaded on by Ian Chai, Glenn Chappell wrote a nifty little 170-line 'C' program, which he called 'newban'. This very first version circulated around the net for a couple of years. It had one font, which included only lower-case letters.

In early 1993, Ian decided 'newban' was due for a few changes. And 7-months later they came up with a completely re-written version of having 888 lines of 'C' code. This was figlet 2.0, the first real release. It had 13 fonts.

Then came the new release figlet 2.1 immediately followed by 2.1.1. This last weighed in at 1314 lines, and had over 60 fonts.

Figlet Illustrations

So how does figlet look. Here are a couple of samples:

DOOM

  ______   _           _          _
 |  ____| (_)         | |        | |
 | |__     _    __ _  | |   ___  | |_
 |  __|   | |  / _` | | |  / _ \ | __|
 | |      | | | (_| | | | |  __/ | |_
 |_|      |_|  \__, | |_|  \___|  \__|
                __/ |
               |___/

LARRY3D

 ____                      ___               __
/\  _`\   __              /\_ \             /\ \__
\ \ \L\_\/\_\      __     \//\ \       __   \ \ ,_\
 \ \  _\/\/\ \   /'_ `\     \ \ \    /'__`\  \ \ \/
  \ \ \/  \ \ \ /\ \L\ \     \_\ \_ /\  __/   \ \ \_
   \ \_\   \ \_\\ \____ \    /\____\\ \____\   \ \__\
    \/_/    \/_/ \/___L\ \   \/____/ \/____/    \/__/
                   /\____/
                   \_/__/

Usage

To use this program all you need is Windows Scripting Runtime. I have tested and developed this version under 5.6. On the command prompt, you have to type the following command:

D:\TOOLS\FIGLET>cscript //Nologo Figlet.vbs /text:[TEXT] /font:[Figlet Font Name]

Where:

  • [TEXT] - The text you want to convert
  • [Figlet Font Name] - The name of the figlet font

The name of the figlet font is the name of the font file without '.flf' extension. You can find many fonts under the FONTS folder.

Notes

You need to run this program from the same folder in which Figlet.vbs file is present as the font files are loaded from the FONTS folder located under the same folder.

Limitations

  1. It does not support the more advanced features like kerning or smushing.

References

  1. Figlet home page
  2. Figlet font specification

History

  • 26th November, 2008 - First release

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Prasad Khandekar

Architect
Fundtech INDIA Ltd.
India India

Member
I am a software professional with over 16 years of commercial business applications design and development experience.
 
My programming experience includes Java, .NET, Classic VB, ASP, Scripting, Power Builder, PHP, Magic & far far ago FoxPro, C, Assembly and COBOL.
 
For last 5 years I am mostly working on Java platform.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralGreat Work PinmemberIrwan Hassan16:44 3 Dec '08  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web04 | 2.5.120210.1 | Last Updated 26 Nov 2008
Article Copyright 2008 by Prasad Khandekar
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid