I'm creating an image using GD and Image Functions.
In the image is a string of dynamic text using imagettftext and a ttf font.
My problem is positioning the text. Imagettftext uses the font baseline but I need to position the font using the very left edge of the string, and the very bottom of the string.
If I can calculate the shift I can adjust imagettftext accordingly but I can't figure out how to calculate how much to the left or right of the baseline the string is, and how much below or above the baseline the string goes.
I know I'm able to calculate the overall width and height of the text using imagettfbbox, and that has been very useful, but I'm not able to get how much of a shift is in the string.