Cheetah
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Intervention\Image\AbstractFont Class Reference
Inheritance diagram for Intervention\Image\AbstractFont:
Intervention\Image\Gd\Font Intervention\Image\Imagick\Font

Public Member Functions

 applyToImage (Image $image, $posx=0, $posy=0)
 
 __construct ($text=null)
 
 text ($text)
 
 getText ()
 
 size ($size)
 
 getSize ()
 
 color ($color)
 
 getColor ()
 
 angle ($angle)
 
 getAngle ()
 
 align ($align)
 
 getAlign ()
 
 valign ($valign)
 
 getValign ()
 
 file ($file)
 
 getFile ()
 
 countLines ()
 

Public Attributes

 $text
 
 $size = 12
 
 $color = '000000'
 
 $angle = 0
 
 $align
 
 $valign
 
 $file
 

Protected Member Functions

 hasApplicableFontFile ()
 

Detailed Description

Definition at line 5 of file AbstractFont.php.

Constructor & Destructor Documentation

◆ __construct()

Intervention\Image\AbstractFont::__construct (   $text = null)

Create a new instance of Font

Parameters
Strinf$textText to be written

Definition at line 71 of file AbstractFont.php.

Member Function Documentation

◆ align()

Intervention\Image\AbstractFont::align (   $align)

Set horizontal text alignment

Parameters
string$align
Returns
void

Definition at line 166 of file AbstractFont.php.

◆ angle()

Intervention\Image\AbstractFont::angle (   $angle)

Set rotation angle of text

Parameters
integer$angle
Returns
void

Definition at line 145 of file AbstractFont.php.

◆ applyToImage()

Intervention\Image\AbstractFont::applyToImage ( Image  $image,
  $posx = 0,
  $posy = 0 
)
abstract

Draws font to given image on given position

Parameters
Image$image
integer$posx
integer$posy
Returns
boolean

Reimplemented in Intervention\Image\Imagick\Font, and Intervention\Image\Gd\Font.

◆ color()

Intervention\Image\AbstractFont::color (   $color)

Set color of text to be written

Parameters
mixed$color
Returns
void

Definition at line 124 of file AbstractFont.php.

◆ countLines()

Intervention\Image\AbstractFont::countLines ( )

Counts lines of text to be written

Returns
integer

Definition at line 242 of file AbstractFont.php.

◆ file()

Intervention\Image\AbstractFont::file (   $file)

Set path to font file

Parameters
string$align
Returns
void

Definition at line 208 of file AbstractFont.php.

◆ getAlign()

Intervention\Image\AbstractFont::getAlign ( )

Get horizontal text alignment

Returns
string

Definition at line 176 of file AbstractFont.php.

◆ getAngle()

Intervention\Image\AbstractFont::getAngle ( )

Get rotation angle of text

Returns
integer

Definition at line 155 of file AbstractFont.php.

◆ getColor()

Intervention\Image\AbstractFont::getColor ( )

Get color of text

Returns
mixed

Definition at line 134 of file AbstractFont.php.

◆ getFile()

Intervention\Image\AbstractFont::getFile ( )

Get path to font file

Returns
string

Definition at line 218 of file AbstractFont.php.

◆ getSize()

Intervention\Image\AbstractFont::getSize ( )

Get font size in pixels

Returns
integer

Definition at line 113 of file AbstractFont.php.

◆ getText()

Intervention\Image\AbstractFont::getText ( )

Get text to be written

Returns
String

Definition at line 92 of file AbstractFont.php.

◆ getValign()

Intervention\Image\AbstractFont::getValign ( )

Get vertical text alignment

Returns
string

Definition at line 197 of file AbstractFont.php.

◆ hasApplicableFontFile()

Intervention\Image\AbstractFont::hasApplicableFontFile ( )
protected

Checks if current font has access to an applicable font file

Returns
boolean

Definition at line 228 of file AbstractFont.php.

◆ size()

Intervention\Image\AbstractFont::size (   $size)

Set font size in pixels

Parameters
integer$size
Returns
void

Definition at line 103 of file AbstractFont.php.

◆ text()

Intervention\Image\AbstractFont::text (   $text)

Set text to be written

Parameters
String$text
Returns
void

Definition at line 82 of file AbstractFont.php.

◆ valign()

Intervention\Image\AbstractFont::valign (   $valign)

Set vertical text alignment

Parameters
string$valign
Returns
void

Definition at line 187 of file AbstractFont.php.

Member Data Documentation

◆ $align

Intervention\Image\AbstractFont::$align

Definition at line 40 of file AbstractFont.php.

◆ $angle

Intervention\Image\AbstractFont::$angle = 0

Definition at line 33 of file AbstractFont.php.

◆ $color

Intervention\Image\AbstractFont::$color = '000000'

Definition at line 26 of file AbstractFont.php.

◆ $file

Intervention\Image\AbstractFont::$file

Definition at line 54 of file AbstractFont.php.

◆ $size

Intervention\Image\AbstractFont::$size = 12

Definition at line 19 of file AbstractFont.php.

◆ $text

Intervention\Image\AbstractFont::$text

Definition at line 12 of file AbstractFont.php.

◆ $valign

Intervention\Image\AbstractFont::$valign

Definition at line 47 of file AbstractFont.php.


The documentation for this class was generated from the following file: