Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.3.3

Request #5230 setFontStyle() and line() with negative coordinates
Submitted: 2005-08-29 10:28 UTC
From: d dot baechtold at unico dot ch Assigned: yunosh
Status: Closed Package: File_PDF
PHP Version: 5.0.4 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2005-08-29 10:28 UTC] d dot baechtold at unico dot ch
Description: ------------ I used the function setFontStyle($style). Maybe you can add this in the next release if you want. Simpliest way for me to do this was: public function setFontStyle($style) { $this->setFont($this->_font_family, $style); } And it would be helpful when all functions with ordinates as parameters could handle negative ordinates like setXY(). I overwrote line() like this: public function line($x1, $y1, $x2, $y2) { if($x1 < 0) $x1 = $this->w + $x1; if($y1 < 0) $y1 = $this->h + $y1; if($x2 < 0) $x2 = $this->w + $x2; if($y2 < 0) $y2 = $this->h + $y2; parent::line($x1, $y1, $x2, $y2); } I found it easier with this to add a line in footer().

Comments

 [2006-08-28 16:40 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!