imagettftext problem with angle

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Doraj

    imagettftext problem with angle

    Hello !

    Here is my problem :

    I had some php scripts which worked well with php 4.0.5 (GD 1.6.2
    according to phpinfo() ) and i put them on a new server with php 4.4.2
    (and GD 2.0.28). Now, they don't do what they should :

    i'm generating an image with text written with an angle : imagettftext
    used

    on the new server, the text has the good angle, but letters inside the
    text are rotated with double this angle : for instance, with an angle
    of 90 degrees, the text is written bottom to top (like it should), but
    letters are rotated with a 180° angle


    i'm sorry if it's something known / corrected already, but I haven't
    found anything about this yet

    In the worst case, i'll probably do my own function to write the text
    letter by letter, but i prefered posting here before

    Thanks

    PS : btw, it seems imagettfbbox gives the rectangle that would be used
    on a rotated text without this problem, so it may come from
    imagettftext

  • Kimmo Laine

    #2
    Re: imagettftext problem with angle

    "Doraj" <doraj8@gmail.c omwrote in message
    news:1170334343 .411814.25790@v 45g2000cwv.goog legroups.com...
    Hello !
    >
    Here is my problem :
    >
    I had some php scripts which worked well with php 4.0.5 (GD 1.6.2
    according to phpinfo() ) and i put them on a new server with php 4.4.2
    (and GD 2.0.28). Now, they don't do what they should :
    >
    i'm generating an image with text written with an angle : imagettftext
    used
    >
    on the new server, the text has the good angle, but letters inside the
    text are rotated with double this angle : for instance, with an angle
    of 90 degrees, the text is written bottom to top (like it should), but
    letters are rotated with a 180° angle
    >
    >
    i'm sorry if it's something known / corrected already, but I haven't
    found anything about this yet
    It seems that this bug: http://bugs.php.net/bug.php?id=25398

    --
    "Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
    http://outolempi.net/ahdistus/ - Satunnaisesti päivittyvä nettisarjis
    spam@outolempi. net | rot13(xvzzb@bhg byrzcv.arg)



    Comment

    • Doraj

      #3
      Re: imagettftext problem with angle

      i'm sorry if it's something known / corrected already, but I haven't
      found anything about this yet
      >
      It seems that this bug: http://bugs.php.net/bug.php?id=25398
      >
      indeed, seems like it, thanks a lot

      Comment

      • Curtis

        #4
        Re: imagettftext problem with angle

        On Thu, 01 Feb 2007 05:52:29 -0800, Doraj <doraj8@gmail.c omwrote:
        >
        i'm sorry if it's something known / corrected already, but I haven't
        found anything about this yet
        >>
        >It seems that this bug: http://bugs.php.net/bug.php?id=25398
        >>
        >
        indeed, seems like it, thanks a lot
        >
        Does imagefttext (FreeType 2) have the same problem? If your server's
        installation supports this function, give it a try. :-)

        Good luck

        --
        Curtis, http://dyersweb.com

        Comment

        Working...