Imagine\Image\FontInterface | Imagine API

- Classes
- Namespaces
- Interfaces
- Index

Imagine API
Interface

# Imagine\Image\FontInterface

interface FontInterface

The font interface

## Methods

string | getFile() Gets the fontfile for current font |
integer | getSize() Gets font's integer point size |
Color | getColor() Gets font's color |
BoxInterface | box(string $string, integer $angle) Gets BoxInterface of font size on the image based on string and angle |

## Details

###
at line 27
`public string getFile()`

Gets the fontfile for current font

#### Return Value

string |

###
at line 34
`public integer getSize()`

Gets font's integer point size

#### Return Value

integer |

###
at line 41
`public Color getColor()`

Gets font's color

#### Return Value

Color |

###
at line 51
`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 |