|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-07-09 18:13 UTC] dpetrov at nchcapital dot com
In accordance with the manual, positive angle should cause rotation counter-clockwise, but with the latest version this is not true. I am not sure where the problem lies. Just in case, I have Freetype 2.1.2 abd GD 2.0.1. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 11:00:02 2025 UTC |
<?php $text = ". Testing ..."; $im = ImageCreate(600,600); $blue = ImageColorAllocate($im, 128,128,255); $black = ImageColorAllocate($im, 0,0,0); $yel = ImageColorAllocate($im, 255,255,0); $wh = ImageColorAllocate($im, 255,255,255); $gr = ImageColorAllocate($im, 0,255,0); imageFilledRectangle($im, 0, 0, 599, 159, $blue); for ($a=0; $a <= 180 ; $a=$a+20) { ImageTtfText($im, 12, $a, 300, 300, $wh, "/usr/share/fonts/default/TrueType/arial.ttf", $text); } header("Content-Type: image/png"); ImagePng($im); ImageDestroy($im); ?> This script produces nice half of a circle.. No bugs. In your setup it will draw the lower half of the cirlce. Please try the snapshot.