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

Public Member Functions

 getBoxSize ()
 
 applyToImage (Image $image, $posx=0, $posy=0)
 
- Public Member Functions inherited from Intervention\Image\AbstractFont
 __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 ()
 

Protected Member Functions

 getPointSize ()
 
- Protected Member Functions inherited from Intervention\Image\AbstractFont
 hasApplicableFontFile ()
 

Additional Inherited Members

- Public Attributes inherited from Intervention\Image\AbstractFont
 $text
 
 $size = 12
 
 $color = '000000'
 
 $angle = 0
 
 $align
 
 $valign
 
 $file
 

Detailed Description

Definition at line 7 of file Font.php.

Member Function Documentation

◆ applyToImage()

Intervention\Image\Gd\Font::applyToImage ( Image  $image,
  $posx = 0,
  $posy = 0 
)

Draws font to given image at given position

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

Reimplemented from Intervention\Image\AbstractFont.

Definition at line 131 of file Font.php.

◆ getBoxSize()

Intervention\Image\Gd\Font::getBoxSize ( )

Calculates bounding box of current font setting

Returns
Array

Definition at line 78 of file Font.php.

◆ getPointSize()

Intervention\Image\Gd\Font::getPointSize ( )
protected

Get font size in points

Returns
integer

Definition at line 14 of file Font.php.


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