Function __global->imagettfbbox

Definitions

sources_custom/phpstub.php

  • Give the bounding box of a text using TrueType fonts.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: N/A

Parameters

Name Type Default Set Range Description
$size float required parameter N/A N/A The font size in pixels
$angle float required parameter N/A N/A Angle in degrees in which text will be measured
$fontfile string required parameter N/A N/A The name of the TrueType font file
$text string required parameter N/A N/A The string to be measured

Return

  • Tuple: lower-left-X, lower-left-Y, lower-right-X, lower-right-Y, upper-right-X, upper-right-Y, upper-left-X, upper-left-Y (false: error)
  • Type: ~array
  • Set: N/A
  • Range: N/A