This function calculates and returns the bounding box in pixels
for a FreeType text.
Note:
Prior to PHP 8.0.0, imageftbbox() was an extended variant of
imagettfbbox() which additionally supported the
options.
As of PHP 8.0.0, imagettfbbox() is an alias of imageftbbox().
Parameters
size
The font size in points.
angle
Angle in degrees in which string will be
measured.
font_filename
The name of the TrueType font file (can be a 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.