标签: php image-processing font-size
我正在使用PHP GD使用imagettftext()创建图像。我需要动态地根据图像的宽度和高度确定字体大小,以便在图像的可见区域保留一个短文本(它是Captcha代码)。
imagettftext()
我尝试检查此页面中的信息:http://www.pearsonified.com/2011/12/golden-ratio-typography.php但我找不到我需要的内容。