JBZoo\Image\Text::_render PHP Method

_render() protected static method

Compact args for imagettftext()
protected static _render ( mixed $image, string $text, array $font, array $coords ) : array
$image mixed A GD image object
$text string The text to output
$font array [$fontfile, $fontsize, $color, $angle]
$coords array [X,Y] Coordinate of the starting position
return array
    protected static function _render($image, $text, array $font, array $coords)
    {
        list($coordX, $coordY) = $coords;
        list($file, $size, $color, $angle) = $font;
        return imagettftext($image, $size, $angle, $coordX, $coordY, $color, $file, $text);
    }