How does “imagettfbbox()” in PHP work?

前端 未结 3 898
悲哀的现实
悲哀的现实 2020-12-18 22:24

Could you please explain what exactly the return value of imagettfbbox() mean? The manual says:

imagettfbbox() returns an array with 8 el

3条回答
  •  感情败类
    2020-12-18 23:13

    The following resource explains this: http://www.tuxradar.com/practicalphp/11/2/6 (via archive.org)

    Just use abs(). This is from the resource above: "[the function] returns its values from the lower-left corner of the baseline of the text string, not the absolute lower-left corner. The baseline of a letter is where it would sit if you were hand writing it on lined paper"

提交回复
热议问题