Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder Element's Avatar
    Join Date
    Jul 2004
    Location
    Lynnwood, Washington, US
    Posts
    855
    Thanks
    2
    Thanked 2 Times in 2 Posts

    Right to Left ImageString?

    Hmm, is it possible to format wording from right to left?

    I want to have a ID displayed in the upper right hand of a image, but obviously, don't want it to get so big it runs out of it's container, or off the image.

  • #2
    Regular Coder
    Join Date
    May 2006
    Location
    Wales
    Posts
    820
    Thanks
    1
    Thanked 82 Times in 79 Posts
    If you're using TFFs you can use imagettfbox to get the positions of the corners, from that you can find out the width of the text. Using that, you can enter the x position of the text as the image width minus the width of the text.


  •  

    Posting Permissions

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