This function calculates and returns the bounding box in
pixels for a TrueType text.
The string to be measured.
The font size in pixels.
The name of the TrueType font file. (Can also be
an URL.) Depending on which version of the GD library
that PHP is using, it may attempt to search for files
that do not begin with a leading '/' by appending
'.ttf' to the filename and searching along a
library-defined font path.
Angle in degrees in which
text will be measured.
This function requires both the GD library and the
FreeType library.
See also imagettftext().