Image_Text max_lines

From: Date: Sat, 23 Jun 2007 08:24:00 +0000
Subject: Image_Text max_lines
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27546@lists.php.net to get a copy of this message
Hi, I have a problem with Image_Text:s max_lines option. I have a small text box I want to fill with text entered by the user. While the user may enter the text it might be that the text doesn't fit into the box. The box I have can only fit one line of text so when there are more lines the text will not be drawn at all or partly outside. I thought I could force Image_Text to draw only one line with correct positioning using max_lines so that the remaining lines would just be left out. But What I got was one line that was partly outside the box still. Seems like Image_Text does positional calculations based on the full text ignoring the max_lines-option. I would have expected that the max_lines is used so that setting it to 1 for example would draw one line of the text at the correct position. Am I using the option incorrectly, possible to adjust somehow or is it a bug? Best Regards, Kim

« previous php.pear.general (#27546) next »