Imagettftext rotation returns scrambled text, but not always??

Discussion in 'PHP' started by SedNaX, Mar 16, 2010.

  1. #1
    Hi,

    I want to rotate a few different words with a few different rotations. Most of the time this is okay, but for a few it returns really weird text (see attachment).

    Anyone have any idea why this is? I've looked for hours and I cannot find anyone else that encountered this problem.

    I tried to rotate the text in different angels. When the text is horizontal it is okay, but when I rotate more the text is displayed incorrectly more wrong.

    Thanks!
     
    SedNaX, Mar 16, 2010 IP
  2. SedNaX

    SedNaX Active Member

    Messages:
    1,326
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    90
    #2
    Forgot to add the attachment :(
     

    Attached Files:

    SedNaX, Mar 16, 2010 IP
  3. SedNaX

    SedNaX Active Member

    Messages:
    1,326
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    90
    #3
    Anyone know anything about this, or how I may be able to fix the problem? I am still struggling with this :(
     
    SedNaX, Mar 23, 2010 IP
  4. Wrighty

    Wrighty Peon

    Messages:
    199
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Do you have a code?
     
    Wrighty, Mar 23, 2010 IP
  5. SedNaX

    SedNaX Active Member

    Messages:
    1,326
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    90
    #5
    Sorry for the late reply, I still have not yet solved this problem...

    A line of code that does the weird rotation is something like this:

    imagettftext($im, 10, -90,150, 30, $white, $font, 'Aanpassen');
     
    SedNaX, Apr 20, 2010 IP
  6. callans

    callans Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Same issue here. The same code used to work fine, then noticed issue after upgrading php. Any solution yet?
     
    callans, Jun 1, 2010 IP