SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member rockindie's Avatar
    Join Date
    Jul 2004
    Location
    New York
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Rotated Text Distorted (GD Library)

    I am developing a script which involves placing text with a -3 angle rotation onto an image. I am currently using the simple:
    PHP Code:
    ImageTTFText ($im$font_size"-3"$text_x$text_y$white'arial',$text); 
    This code seems to make the text seem distorted. I have attached an example. Some letters appear bigger than others and it just looks off. I was wondering if anyone has any other methods or solutions for placing angled text onto an image that would not result in the distortion seen in my example. Thanks!
    Attached Images Attached Images

  2. #2
    SitePoint Addict Shockt's Avatar
    Join Date
    Jan 2005
    Location
    California
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I havent seen the image but I assume your problem could be with the use of using the negative.. try this:
    ImageTTFText ($im, $font_size, (360-3), $text_x, $text_y, $white, 'arial',$text);

  3. #3
    SitePoint Member rockindie's Avatar
    Join Date
    Jul 2004
    Location
    New York
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Shockt
    I havent seen the image but I assume your problem could be with the use of using the negative.. try this:
    ImageTTFText ($im, $font_size, (360-3), $text_x, $text_y, $white, 'arial',$text);
    I appreciate the response. I just tried what you suggested and the text is still distorted. Do you have any other ideas of a way to fix this?

  4. #4
    SitePoint Addict Shockt's Avatar
    Join Date
    Jan 2005
    Location
    California
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not without seeing the example image.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •