reportingsjr Posted January 23, 2007 Share Posted January 23, 2007 I was wondering how I could put a break in a sentence I'm using with gd (image library). I haven't figured it out and cant find anything on the web, this makes it a real pain because as you may know the text will just run off the side of the image and you wont be able to see it!Many thanks! Link to comment Share on other sites More sharing options...
justsomeguy Posted January 23, 2007 Share Posted January 23, 2007 First try \n. If that doesn't work, then just make a new text string several pixels below the first one. There is a function to calculate the pixel width of text, so you can test first to see if it will run off. Link to comment Share on other sites More sharing options...
reportingsjr Posted January 23, 2007 Author Share Posted January 23, 2007 Hmm, so I will have to split it? Okay, because \n didnt work! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now