Zend_Text_Figlet is a PHP implementation of FIGlet
Located in /Text/Figlet.php (line 30)
Height of the characters
Array containing all characters of the current font
Current char
Current character width
Indicates if a font was loaded yet
Options of the current font
Smush defined by the font
Latin-1 codes for German letters, respectively:
LATIN CAPITAL LETTER A WITH DIAERESIS = A-umlaut LATIN CAPITAL LETTER O WITH DIAERESIS = O-umlaut LATIN CAPITAL LETTER U WITH DIAERESIS = U-umlaut LATIN SMALL LETTER A WITH DIAERESIS = a-umlaut LATIN SMALL LETTER O WITH DIAERESIS = o-umlaut LATIN SMALL LETTER U WITH DIAERESIS = u-umlaut LATIN SMALL LETTER SHARP S = ess-zed
Wether to handle paragraphs || not
Hard blank character
In character line
In character line length
Maximum in character line length
Justification for the text, according to $_outputWidth
For using font default, this parameter should be null, else one of the values of Zend_Text_Figlet::JUSTIFICATION_*
Max length of any character
Current outline length
Maxmimum outline length
Current output
Current output line
Output width, defaults to 80.
Previous character width
Direction of text-writing, namely right to left
For using font default, this parameter should be null, else one of the values of Zend_Text_Figlet::DIRECTION_*
Option keys to skip when calling setOptions()
Smush mode
Override font file smush layout
Smush defined by the user
Instantiate the FIGlet with a specific font. If no font is given, the standard font is used. You can also supply multiple options via the $options variable, which can either be an array or an instance of Zend_Config.
Render a FIGlet text
Set options from config object
Set a font to use
Set handling of paragraphs
Set the justification. 0 stands for left aligned, 1 for centered and 2 for right aligned.
Set options from array
Set the output width
Set right to left mode. For writing from left to right, use Zend_Text_Figlet::DIRECTION_LEFT_TO_RIGHT. For writing from right to left, use Zend_Text_Figlet::DIRECTION_RIGHT_TO_LEFT.
Set the smush mode.
Use one of the constants of Zend_Text_Figlet::SM_*, you may combine them.
Attempts to add the given character onto the end of the current line.
Returns true if this can be done, false otherwise.
Appends the current line to the output
Clears the current line
Gets the requested character and sets current and previous char width.
Load a single character from the font file
Load the specified font
Puts the given string, substituting blanks for hardblanks. If outputWidth
is 1, puts the entire string; otherwise puts at most outputWidth - 1 characters. Puts a newline at the end of the string. The string is left- justified, centered or right-justified (taking outputWidth as the screen width) if justification is 0, 1 or 2 respectively.
Reads a four-character magic string from a stream
Set the used smush mode, according to smush override, user smsush and font smush.
Skip a stream to the end of line
Returns the maximum amount that the current character can be smushed into the current line.
Given two characters, attempts to smush them into one, according to the current smushmode. Returns smushed character or false if no smushing can be done.
Smushmode values are sum of following (all values smush blanks):
1: Smush equal chars (not hardblanks) 2: Smush '_' with any char in hierarchy below 4: hierarchy: "|", "/\", "[]", "{}", "()", "<>" Each class in hier. can be replaced by later class. 8: [ + ] -> |, { + } -> |, ( + ) -> | 16: / + \ -> X, > + < -> X (only in that order) 32: hardblank + hardblank -> hardblank
Splits inCharLine at the last word break (bunch of consecutive blanks).
Makes a new line out of the first part and appends it using appendLine(). Makes a new line out of the second part and returns.
Unicode compatible ord() method
Write directions
Magic fontfile number
Justifications
Smush mode override modes
Smush2 layout modes
Documentation generated on Mon, 21 Jun 2010 15:23:05 -0400 by phpDocumentor 1.4.3