On the case that the coordinate values of the imagettfbbox text of the GD2 library function of PHP are outside the border.

[problems encountered]

in the chapter "creating Images" in the book PHP and MySQL Web Development, when introducing the GD2 library function imagettfbbox , there is a sentence that reads

The coordinate values of
text may also be outside the border. For example, the text might actually start at the x coordinate value-1.

I haven"t figured out how this situation came into being. I hope the master will give me some advice!

the normal situation is as follows:
imagettfbbox

Php
Mar.20,2021

for example, if your text is Our Company, if you want Company to appear at the front, you can use negative x coordinates to display different text by moving the coordinates instead of changing the text

.
Menu