Text spacing using GD

Discussion in 'PHP' started by Amator, Apr 10, 2010.

  1. #1
    Hi all,
    I want to write a string to a JPG file with GD (2.0.28 compatible)
    I am using imagettftext to write a string in an angle of 7 degrees.
    I like to change the character spacing in the string.
    Is there an easy way to set the character spacing ? I checked several functions but I can not find it.
    Thanks
     
    Amator, Apr 10, 2010 IP
  2. nabil_kadimi

    nabil_kadimi Well-Known Member

    Messages:
    1,065
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    195
    #2
    Hello,

    Instead of telling PHP to draw the string at once, try to place characters one by one and specifying the character position.
    If you don't succeed just put your code here and I (or someone else from DP) will edit it... It easier to assist you when you show your code
     
    nabil_kadimi, Apr 10, 2010 IP
  3. Amator

    Amator Well-Known Member

    Messages:
    1,424
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    165
    #3
    I was thinking about the same but I was hoping that there was aneasier solution.
    I will need to calculate the position well because the abgle is 7 degrees.
     
    Amator, Apr 10, 2010 IP