How to account for font swash with PHP and GD
问题 I have the following code to print text on an image. I am also adding a debug box around the text. However, I noticed the text on the left lies outside of the box that PHP gives me with imagettfbbox . This looks like an issue with the font swash. Is there anyway to account for this? Can I figure out the distance between the start of the swash and the actual position imagettfbbox gives to me? I don't think this is an issue with the font, as I tried it with a few script style fonts and the