note 36534 added to function.printer-draw-text
| From: | firman at fibconsultant dot biz | Date: | Tue, 14 Oct 2003 10:20:45 +0000 |
| Subject: | note 36534 added to function.printer-draw-text | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-58560@lists.php.net to get a copy of this message | ||
I've a problem with the right alignment for number with draw_text so I make a small function
and it is work for me, hopefully it will help other.
function write_num($input,$printer,$ypos,$xpos){
$s=strlen($input);
$y=$xpos;
for ($i=1;$i<$s+1;$i++){
$u=$i*-1;
printer_draw_text($printer,substr($input,$u,1),$y,$ypos);
$y=$y-15;
}
}
Firman, Indonesia
----
Manual Page -- http://www.php.net/manual/en/function.printer-draw-text.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+36534
Delete -- http://master.php.net/manage/user-notes.php?action=delete+36534&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+36534&report=yes
Search -- http://master.php.net/manage/user-notes.php