- Classes
- Namespaces
- Interfaces
- Traits
- Index

Class

# Imagine\Gd\Font

class Font extends AbstractFont

Font implementation using the GD library

## Methods

| __construct(string $file, integer $size, ColorInterface $color) Constructs a font with specified $file, $size and $color | from AbstractFont
string | getFile() Gets the fontfile for current font | from AbstractFont
integer | getSize() Gets font's integer point size | from AbstractFont
ColorInterface | getColor() Gets font's color | from AbstractFont
BoxInterface | box(string $string, integer $angle) Gets BoxInterface of font size on the image based on string and angle |

## Details

###
in AbstractFont 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 |

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

Gets the fontfile for current font

#### Return Value

string |

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

Gets font's integer point size

#### Return Value

integer |

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

Gets font's color

#### Return Value

ColorInterface |

###
at line 26
`public BoxInterface box(string $string, integer $angle)`

Gets BoxInterface of font size on the image based on string and angle

#### Parameters

string | $string |
integer | $angle |

#### Return Value

BoxInterface |