- Classes
- Namespaces
- Interfaces
- Index

Imagine API
Class

# Imagine\Image\AbstractFont

abstract class AbstractFont implements FontInterface

Abstract font base class

## 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 45
`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 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 Color getColor()`

Gets font's color

#### Return Value

Color |