FontInterface
interface FontInterface
The font interface.
Methods
string
getFile()
Gets the fontfile for current font.
int
getSize()
Gets font's integer point size.
getColor()
Gets font's color.
box(string $string, int $angle = 0)
Gets BoxInterface of font size on the image based on string and angle.
string
wrapText(string $string, int $maxWidth, int $angle = 0)
Split a string into multiple lines so that it fits a specific width.
Details
at line 24
string
getFile()
Gets the fontfile for current font.
at line 31
int
getSize()
Gets font's integer point size.
at line 38
ColorInterface
getColor()
Gets font's color.
at line 48
BoxInterface
box(string $string, int $angle = 0)
Gets BoxInterface of font size on the image based on string and angle.
at line 59
string
wrapText(string $string, int $maxWidth, int $angle = 0)
Split a string into multiple lines so that it fits a specific width.