Laravel version update
Laravel version update
This commit is contained in:
@@ -14,7 +14,7 @@ abstract class AbstractFont
|
||||
/**
|
||||
* Text size in pixels
|
||||
*
|
||||
* @var integer
|
||||
* @var int
|
||||
*/
|
||||
public $size = 12;
|
||||
|
||||
@@ -28,7 +28,7 @@ abstract class AbstractFont
|
||||
/**
|
||||
* Rotation angle of the text
|
||||
*
|
||||
* @var integer
|
||||
* @var int
|
||||
*/
|
||||
public $angle = 0;
|
||||
|
||||
@@ -57,11 +57,18 @@ abstract class AbstractFont
|
||||
* Draws font to given image on given position
|
||||
*
|
||||
* @param Image $image
|
||||
* @param integer $posx
|
||||
* @param integer $posy
|
||||
* @param int $posx
|
||||
* @param int $posy
|
||||
* @return boolean
|
||||
*/
|
||||
abstract public function applyToImage(Image $image, $posx = 0, $posy = 0);
|
||||
|
||||
/**
|
||||
* Calculates bounding box of current font setting
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
abstract public function getBoxSize();
|
||||
|
||||
/**
|
||||
* Create a new instance of Font
|
||||
@@ -82,6 +89,8 @@ abstract class AbstractFont
|
||||
public function text($text)
|
||||
{
|
||||
$this->text = $text;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -97,18 +106,20 @@ abstract class AbstractFont
|
||||
/**
|
||||
* Set font size in pixels
|
||||
*
|
||||
* @param integer $size
|
||||
* @param int $size
|
||||
* @return void
|
||||
*/
|
||||
public function size($size)
|
||||
{
|
||||
$this->size = $size;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get font size in pixels
|
||||
*
|
||||
* @return integer
|
||||
* @return int
|
||||
*/
|
||||
public function getSize()
|
||||
{
|
||||
@@ -124,6 +135,8 @@ abstract class AbstractFont
|
||||
public function color($color)
|
||||
{
|
||||
$this->color = $color;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -139,18 +152,20 @@ abstract class AbstractFont
|
||||
/**
|
||||
* Set rotation angle of text
|
||||
*
|
||||
* @param integer $angle
|
||||
* @param int $angle
|
||||
* @return void
|
||||
*/
|
||||
public function angle($angle)
|
||||
{
|
||||
$this->angle = $angle;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get rotation angle of text
|
||||
*
|
||||
* @return integer
|
||||
* @return int
|
||||
*/
|
||||
public function getAngle()
|
||||
{
|
||||
@@ -166,6 +181,8 @@ abstract class AbstractFont
|
||||
public function align($align)
|
||||
{
|
||||
$this->align = $align;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -187,6 +204,8 @@ abstract class AbstractFont
|
||||
public function valign($valign)
|
||||
{
|
||||
$this->valign = $valign;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -208,6 +227,8 @@ abstract class AbstractFont
|
||||
public function file($file)
|
||||
{
|
||||
$this->file = $file;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -237,7 +258,7 @@ abstract class AbstractFont
|
||||
/**
|
||||
* Counts lines of text to be written
|
||||
*
|
||||
* @return integer
|
||||
* @return int
|
||||
*/
|
||||
public function countLines()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user