public function text(string $text, array $options = [])
	{
		$options                = array_merge($this->textDefaults, $options);
		$options['color']       = trim($options['color'], '# ');
		$options['shadowColor'] = trim($options['shadowColor'], '# ');

		$this->_text($text, $options);

		return $this;
	}
public function text(string $text, array $options = [])
	{
		$options                = array_merge($this->textDefaults, $options);
		$options['color']       = trim($options['color'], '# ');
		$options['shadowColor'] = trim($options['shadowColor'], '# ');

		$this->_text($text, $options);

		return $this;
	}
public function text ( string $ text , array $ options = [ ] ) { $ options = array_merge ( $ this -> textDefaults , $ options ) ; $ options [ 'color' ] = trim ( $ options [ 'color' ] , '# ' ) ; $ options [ 'shadowColor' ] = trim ( $ options [ 'shadowColor' ] , '# ' ) ; $ this -> _text ( $ text , $ options ) ; return $ this ; }
Overlays a string of text over the image.

Valid options:

- color         Text Color (hex number)
- shadowColor   Color of the shadow (hex number)
- hAlign        Horizontal alignment: left, center, right
- vAlign        Vertical alignment: top, middle, bottom
- hOffset
- vOffset
- fontPath
- fontSize
- shadowOffset

@param string $text
@param array  $options

@return $this
Overlays a string of text over the image .