
*
* @var int
*/
protected $_outlineLengthLimit = 0;
/**
* In character line
*
* @var string
*/
protected $_inCharLine;
/**
* In character line length
*
* @var int
*/
protected $_inCharLineLength = 0;
/**
* Maximum in character line length
*
* @var int
*/
protected $_inCharLineLengthLimit = 0;
/**
* Current char
*
* @var array
*/
protected $_currentChar = null;
/**
* Current output line
*
* @var array
*/
protected $_outputLine;
/**
* Current output
*
* @var string
*/
protected $_output;
/**
* Instantiate the FIGlet with a specific font. If font is null, 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.
*
* @param string $fontFile
* @param array|Zend_Config $options
*/
public function __construct($fontFile = null, $options = null);
/**
* Set options from array
*
* @param array $options
* @return Zend_Figlet
*/
public function setOptions(array $options);
/**
* Set options from config object
*
* @param Zend_Config $config
* @return Zend_Figlet
*/
public function setConfig(Zend_Config $config);
/**
* Set the justification. 0 stands for left aligned, 1 for centered and 2
* for right aligned.
*
* @param int $justification
* @return Zend_Figlet
*/
public function setJustification($justification);
/**
* Set the output width
*
* @param int $outputWidth
* @return Zend_Figlet
*/
public function setOutputWidth($outputWidth);
/**
* Set the layout mode
*
* @param int $layoutMode
* @return Zend_Figlet
*/
public function setLayoutMode($layoutMode);
/**
* Set right to left mode. For writing from left to right, use "0". For
* writing from right to left, use "1".
*
* @param int $rightToLeft
* @return Zend_Figlet
*/
public function setRightToLeft($rightToLeft);
/**
* Wether to allow smush override or not.
*
* @param boolean $smushOverride
*/
protected function _setSmushOverride($smushOverride);
/**
* Generate a FIGlet text
*
* @param string $text
* @return string
*/
public function generate($text);
/**
* 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.
*
* @param string $string
*/
protected function _putString($string);
/**
* Appends the current line to the output
*/
protected function _appendLine();
/**
* 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.
*/
protected function _splitLine();
/**
* Clears the current line
*/
protected function _clearLine();
/**
* Attempts to add the given character onto the end of the current line.
* Returns true if this can be done, false otherwise.
*
* @param string $char
* @return boolean
*/
protected function _addChar($char);
/**
* Gets the requested character and sets current and previous char width.
*
* @param string $char
*/
protected function _getLetter($char);
/**
* Returns the maximum amount that the current character can be smushed into
* the current line.
*
* @return int
*/
protected function _smushAmount();
/**
* 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
*
* @param string $leftChar
* @param string $rightChar
* @return string
*/
protected function _smushem($leftChar, $rightChar);
/**
* Load the specified font
*
* @param string $fontFile
*/
protected function _loadFont($fontFile);
/**
* Reads a four-character magic string from a stream
*
* @param resource $fp
*/
protected function _readMagic($fp);
/**
* Skip a stream to the end of line
*
* @param resource $fp
*/
protected function _skipToEol($fp);
/**
* Load a single character from the font file
*
* @param resource $fp
*/
protected function _loadChar($fp);
}
{code}