imageftbbox

imageftbbox

(PHP 4 >= 4.0.7, PHP 5, PHP 7)

imageftbboxGive the bounding box of a text using fonts via freetype2

Description

array imageftbbox ( float $size , float $angle , string $fontfile , string $text [, array $extrainfo ] )

This function calculates and returns the bounding box in pixels for a FreeType text.

Parameters

size

The font size. Depending on your version of GD, this should be specified as the pixel size (GD1) or point size