in reply to Help with GD text

and would LIKE to have a $im->stringDOWN equivalent,

There is no such animal for bit-mapped fonts.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^2: Help with GD text
by JimDuyer (Sexton) on Jun 17, 2011 at 22:51 UTC
    Thanks for replying... I made it harder by not stating in advance that I am using my own true type font that is on my server. I don't think I can draw the image and paste it together, as I already have a background image that I am slamming this text image on to. I will be using the string up, could you tell me how to rotate the text to any angle I like ? I need the -90, I suppose, as I need to have the right hand side text go from top to bottom and face to the right. Any ideas ?
      could you tell me how to rotate the text to any angle I like ?

      See the documentation for  $image->stringFT( fgcolor, fontname, ptsize, angle, x, y, string ) ...

      The arguments are as follows: fgcolor Color index to draw the string in fontname A path to the TrueType (.ttf) font file or a font pattern +. ptsize The desired point size (may be fractional) angle The rotation angle, in radians (positive values rotate co +unter clockwise) x,y X and Y coordinates to start drawing the string string The string itself If successful, the method returns an eight-element list giving the bou +ndaries of the rendered string: @bounds[0,1] Lower left corner (x,y) @bounds[2,3] Lower right corner (x,y) @bounds[4,5] Upper right corner (x,y) @bounds[6,7] Upper left corner (x,y)

      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.
        Thanks kind sir, I will look into that.