图像图:计算字体大小以确保文字符合图像宽度
原文:imagettftext(): calculate font size to ensure text fits image width
原文:imagettftext(): calculate font size to ensure text fits image width
I m using imagettftext() to write dynamic text on an image and I want it to fit my image width. How can I calculate the font size by the text lenght?