From cc36996de9c6e32cd071d07ddc41d4511b99f4aa Mon Sep 17 00:00:00 2001 From: Paul Reinheimer Date: Wed, 28 Nov 2007 20:55:15 +0000 Subject: [PATCH] Added a basic framework, want to add an example later Lots of stuff stolen from imagettftext git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@247258 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/image/functions/imagefttext.xml | 27 +++++++++++++++++------ 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/reference/image/functions/imagefttext.xml b/reference/image/functions/imagefttext.xml index 85f5287d38..93712bb884 100644 --- a/reference/image/functions/imagefttext.xml +++ b/reference/image/functions/imagefttext.xml @@ -1,5 +1,5 @@ - + imagefttext @@ -14,12 +14,11 @@ floatangle intx inty - intcol + intcolor stringfont_file stringtext arrayextrainfo - &warn.undocumented.func; &reftitle.parameters; @@ -29,14 +28,16 @@ size - + The font size to use in points angle - + The angle in degrees, with 0 degrees being left-to-right reading text. + Higher values represent a counter-clockwise rotation. For example, a + value of 90 would result in bottom-to-top reading text. @@ -44,6 +45,13 @@ x + The coordinates given by x and + y will define the basepoint of the first + character (roughly the lower-left corner of the character). This + is different from the imagestring, where + x and y define the + upper-left corner of the first character. For example, "top left" + is 0, 0. @@ -51,13 +59,16 @@ y + The y-ordinate. This sets the position of the fonts baseline, not the + very bottom of the character. - col + color + The index of the desired color for the text, see iamgecolorexact @@ -65,6 +76,7 @@ font_file + The full path to the font being used. @@ -72,6 +84,7 @@ text + Text to be inserted into image. @@ -88,7 +101,7 @@ &reftitle.returnvalues; - This function returns an array containing the following elements: + This function returns an array defining the four points of the box, starting in the lower left and moving counter-clockwise: