- Classes
- Namespaces
- Interfaces
- Traits
- Index

Class

# Imagine\Image\AbstractFont

abstract class AbstractFont implements FontInterface

Abstract font base class

## Methods

| __construct(string $file, integer $size, ColorInterface $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 |
ColorInterface | getColor() Gets font's color |

## Details

###
at line 45
`public __construct(string $file, integer $size, ColorInterface $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 |
ColorInterface | $color |

###
at line 55
`final public string getFile()`

Gets the fontfile for current font

#### Return Value

string |

###
at line 63
`final public integer getSize()`

Gets font's integer point size

#### Return Value

integer |

###
at line 71
`final public ColorInterface getColor()`

Gets font's color

#### Return Value

ColorInterface |