JBZoo\Image\Text::_getStrokeX PHP Method

_getStrokeX() protected static method

Get X offset for stroke rendering mode
protected static _getStrokeX ( string $fontSize, integer $angle, string $fontFile, array $letters, string $charKey, integer $strokeSpacing, integer $textX ) : integer
$fontSize string
$angle integer
$fontFile string
$letters array
$charKey string
$strokeSpacing integer
$textX integer
return integer
    protected static function _getStrokeX($fontSize, $angle, $fontFile, $letters, $charKey, $strokeSpacing, $textX)
    {
        $charSize = imagettfbbox($fontSize, $angle, $fontFile, $letters[$charKey - 1]);
        $textX += abs($charSize[4] - $charSize[0]) + $strokeSpacing;
        return $textX;
    }