You're right but in my case it's quite complicated.
The text for each menu item is stored in a text file and according to the selected language, I write the correct text (read from the text file) on a blank image.
The lenght of the text is variable upon the language (short in english, longer in french,italian,spanish and much longer in german...).
As the function called to generate the image and the text is common, I can't know where to break the line.
I'm going to try to use ereg to check for the /n character in the string and then print the second part with new coordinates.