Imagine API
Class

Imagine\Image\AbstractFont

abstract class AbstractFont implements FontInterface

Methods

__construct(string $file, integer $size, Color $color)

Constructs a font with specified $file, $size and $color

string getFile()

Gets the fontfile for current font

integer getSize()

Gets font's integer point size

Color getColor()

Gets font's color

Details

at line 42
public __construct(string $file, integer $size, Color $color)

Constructs a font with specified $file, $size and $color

The font size is to be specified in points (e.g. 10pt means 10)

Parameters

string $file
integer $size
Color $color

at line 52
final public string getFile()

Gets the fontfile for current font

Return Value

string

at line 60
final public integer getSize()

Gets font's integer point size

Return Value

integer

at line 68
final public Color getColor()

Gets font's color

Return Value

Color