<?xml version="1.0"?>
<?xml-stylesheet 
 href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/5230/bug">
    <title>PEAR Bug #5230</title>
    <link>http://pear.php.net/bugs/5230</link>
    <description>[Closed] setFontStyle() and line() with negative coordinates</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bugs/5230"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/5230/2006-08-28+12%3A40%3A24#2006-08-28+12%3A40%3A24"/>
     </rdf:Seq>
    </items>
  </channel>
    <item rdf:about="http://pear.php.net/bugs/5230">
      <title>d.baechtold@... [2005-08-29 06:28:16]</title>
      <link>http://pear.php.net/bugs/5230</link>
      <description><![CDATA[<pre>File_PDF Feature/Change Request
Reported by d.baechtold@...
2005-08-29T10:28:16-00:00
PHP: 5.0.4 OS: Linux Package Version: 

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-&gt;setFont($this-&gt;_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 &lt; 0) $x1 = $this-&gt;w + $x1;
  if($y1 &lt; 0) $y1 = $this-&gt;h + $y1;
  if($x2 &lt; 0) $x2 = $this-&gt;w + $x2;
  if($y2 &lt; 0) $y2 = $this-&gt;h + $y2;
  
  parent::line($x1, $y1, $x2, $y2);
}

I found it easier with this to add a line in footer().</pre>]]></description>
      <content:encoded><![CDATA[<pre>File_PDF Feature/Change Request
Reported by d.baechtold@...
2005-08-29T10:28:16-00:00
PHP: 5.0.4 OS: Linux Package Version: 

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-&gt;setFont($this-&gt;_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 &lt; 0) $x1 = $this-&gt;w + $x1;
  if($y1 &lt; 0) $y1 = $this-&gt;h + $y1;
  if($x2 &lt; 0) $x2 = $this-&gt;w + $x2;
  if($y2 &lt; 0) $y2 = $this-&gt;h + $y2;
  
  parent::line($x1, $y1, $x2, $y2);
}

I found it easier with this to add a line in footer().</pre>]]></content:encoded>
      <dc:date>2005-08-29T10:28:16-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/5230/2006-08-28+12%3A40%3A24#2006-08-28+12%3A40%3A24">
      <title>yunosh [2006-08-28 16:40]</title>
      <link>http://pear.php.net/bugs/5230#1156783224</link>
      <description><![CDATA[<pre>This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.</pre>]]></description>
      <content:encoded><![CDATA[<pre>This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.</pre>]]></content:encoded>
      <dc:date>2006-08-28T16:40:24-00:00</dc:date>
    </item>
</rdf:RDF>