49 #define EMBED_FIGLET_USE_VISUAL_STUDIO
230 typedef std::basic_ostream<char> ostream_type;
232 static unsigned const maxHeight = 10;
233 static unsigned const maxLenght = 256;
234 static unsigned const maxTableSize = 256;
239 uint8_t lspaces[maxHeight];
240 uint8_t rspaces[maxHeight];
241 char const * rows[maxHeight];
253 typedef enum { FIGLET_SINGLE=0, FIGLET_DOUBLE }
FrameMode;
259 char const Hardblank;
260 unsigned const Height;
262 unsigned const FontMaxLen;
263 unsigned const FontSize;
264 uint8_t rspaces[maxHeight];
265 char lines[maxHeight][maxLenght];
266 char smush[maxHeight];
267 unsigned short charToTable[maxTableSize];
268 unsigned short charWidth[maxTableSize];
269 unsigned charPosition;
277 char smushingRules(
char left,
char right )
const;
279 bool pushMonospaced(
unsigned c );
280 bool pushFullWidth(
unsigned c );
281 bool pushPacked(
unsigned c );
282 bool pushSmushed(
unsigned c );
283 void fillForPrint(
char const message[] );
320 char const message[],
321 ostream_type & s = cout,
322 char const top[] =
"",
323 char const bottom[] =
""
329 char const message[],
330 ostream_type & s = cout,
Class implementing the "figlet" algorithm.
Definition Figlet.hh:256
void setSmushed()
Set print mode to smushed (figlet default), see Available printing mode.
Definition Figlet.hh:315
void setMonospaced()
Set print mode to monospaced, see Available printing mode.
Definition Figlet.hh:306
void setFullWidth()
Set print mode to full width, see Available printing mode.
Definition Figlet.hh:309
void setPacked()
Set print mode to packed, see Available printing mode.
Definition Figlet.hh:312
void printFramed(char const message[], ostream_type &s=cout, FrameMode fm=FIGLET_SINGLE)
Available framing mode
Definition Figlet.cc:355
void init()
initialize Banner class
Definition Figlet.cc:90
unsigned print(char const message[], ostream_type &s=cout, char const top[]="", char const bottom[]="")
Print large letters of string message on stream s, see Available printing mode.
Definition Figlet.cc:331
Collects structures and classes for banner generation.
Definition Figlet.cc:56
FrameMode
Available way to print a frames string, see Available framing mode.
Definition Figlet.hh:253
Banner small
instance Banner class using figlet font small
Banner mini
instance Banner class using figlet font mini
Banner doom
instance Banner class using figlet font doom
Banner banner
instance Banner class using figlet font banner
Banner standard
instance Banner class using figlet font standard
Banner straight
instance Banner class using figlet font straight
Banner big
instance Banner class using figlet font big
PrintMode
Available way to print a string, see Available printing mode.
Definition Figlet.hh:245
Banner script
instance Banner class using figlet font script
Banner larry3d
instance Banner class using figlet font larry3d
Structure used to store a charater of the font.
Definition Figlet.hh:237
unsigned short nchar
character (ascii) number
Definition Figlet.hh:238