- Author
- Enrico Bertolazzi (enric.nosp@m.o.be.nosp@m.rtola.nosp@m.zzi@.nosp@m.unitn.nosp@m..it), homepage: http://www.ing.unitn.it/~bertolaz
- Version
- 1.0.2
- Date
- 2013
This library available at
implement a subset of Figlet capability, i.e. print large letters out of ordinary text
_ _ _ _ _ _
| (_) | _____ | |_| |__ (_)___
| | | |/ / _ \ | __| '_ \| / __|
| | | < __/ | |_| | | | \__ \_
|_|_|_|\_\___| \__|_| |_|_|___(_)
Differently of standard FIGlet command (http://www.figlet.org/) this print can be done inside a user program using run time generated string as follows
#include <sstream>
using namespace std;
int
main() {
for ( int i = 2; i <= 4; ++i ) {
ostringstream ss;
ss << "5/" << i << " = " << 5.0/i;
}
cout << "ALL DONE!\n";
return 0;
}
Banner small
instance Banner class using figlet font small
Banner standard
instance Banner class using figlet font standard
which output is the following
_____ _ _
| ___| __ __ _ ___| |_(_) ___ _ __ ___
| |_ | '__/ _` |/ __| __| |/ _ \| '_ \/ __|
| _|| | | (_| | (__| |_| | (_) | | | \__ \
|_| |_| \__,_|\___|\__|_|\___/|_| |_|___/
___ _____ ___ ___
| __| / /_ ) ___ |_ ) | __|
|__ \/ / / / |___| / / _|__ \
|___/_/ /___| |___| /___(_)___/
___ ______ _ __ __ __ ______
| __| / /__ / ___ / | / / / / / / / /__ |
|__ \/ / |_ \ |___| | |_/ _ Y _ Y _ Y _ \/ /
|___/_/ |___/ |___| |_(_)___|___|___|___/_/
___ ___ _ _ ___ ___
| __| / / | | ___ / | |_ ) __|
|__ \/ /|_ _| |___| | |_ / /|__ \
|___/_/ |_| |___| |_(_)___|___/
No initialization files are necessary. The fonts are hardware embedded in the library. The available fonts are:
- banner
- big
- doom
- larry3d
- mini
- script
- small
- standard
- straight
A simple ruby script permits to convert figlet .flf files to structures which can be embedded in the library.