Home > PHP > Function > GD > imagepsbbox()

imagepsbbox()

imagepsbbox - Give the bounding box of a text rectangle using PostScript Type1 fonts

Syntax

array imagepsbbox (string $text, resource $font, int $size, string $text, resource $font, int $size, int $space, int $tightness, float $angle, string $text, resource $font, int $size, string $text, resource $font, int $size, int $space, int $tightness, float $angle)

Arguments

  • text - The text to be written.
  • font - A font resource, returned by imagepsloadfont().
  • size - size is expressed in pixels.
  • text - Allows you to change the default value of a space in a font. This amount is added to the normal value and can also be negative. Expressed in character space units, where 1 unit is 1/1000th of an em-square.
  • font - tightness allows you to control the amount of white space between characters. This amount is added to the normal character width and can also be negative. Expressed in character space units, where 1 unit is 1/1000th of an em-square.
  • size - angle is in degrees.
  • space
  • tightness
  • angle
  • text - The text to be written.
  • font - A font resource, returned by imagepsloadfont().
  • size - size is expressed in pixels.
  • text - Allows you to change the default value of a space in a font. This amount is added to the normal value and can also be negative. Expressed in character space units, where 1 unit is 1/1000th of an em-square.
  • font - tightness allows you to control the amount of white space between characters. This amount is added to the normal character width and can also be negative. Expressed in character space units, where 1 unit is 1/1000th of an em-square.
  • size - angle is in degrees.
  • space
  • tightness
  • angle

Description

Gives the bounding box of a text rectangle using PostScript Type1 fonts.

Version

PHP 4, 5

Return value

Returns an array containing the following elements: 0 left x-coordinate 1 upper y-coordinate 2 right x-coordinate 3 lower y-coordinate