|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-11-12 12:37 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Package: *Graphics related
+Package: GD related
-Assigned To:
+Assigned To: cmb
[2021-11-12 12:37 UTC] cmb@php.net
[2021-11-12 12:42 UTC] dwhile at while dot org dot uk
-Status: Feedback
+Status: Assigned
[2021-11-12 12:42 UTC] dwhile at while dot org dot uk
[2021-11-12 12:50 UTC] dwhile at while dot org dot uk
[2021-11-12 13:49 UTC] cmb@php.net
[2021-11-12 17:16 UTC] cmb@php.net
-Status: Assigned
+Status: Suspended
[2021-11-12 17:16 UTC] cmb@php.net
[2021-11-19 11:56 UTC] cmb@php.net
-Status: Suspended
+Status: Not a bug
[2021-11-19 11:56 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 00:00:02 2025 UTC |
Description: ------------ Using the imagettftext function call with an angle of 90 degrees causes the output to be rendered with each letter of the text on top of one another. Using the example from the documentation page and changing the angle to 90 causes the problem indeed anything above around 45 degrees shows the same problem. Test script: --------------- <?php header('Content-Type: image/png'); $im = imagecreatetruecolor(400, 30); $white = imagecolorallocate($im, 255, 255, 255); $grey = imagecolorallocate($im, 128, 128, 128); $black = imagecolorallocate($im, 0, 0, 0); imagefilledrectangle($im, 0, 0, 399, 29, $white); $text = 'Testing...'; $font = '/usr/share/fonts/msttcorefonts/arial.ttf'; imagettftext($im, 20, 90, 11, 21, $grey, $font, $text); imagettftext($im, 20, 90, 10, 20, $black, $font, $text); imagepng($im); imagedestroy($im); ?> Expected result: ---------------- The text should be rendered vertically reading from bottom to top. Actual result: -------------- The rendered text has each character rendered on top of each other.