setFont() public method

Set the font to use from the available fonts
public setFont ( string $font = null ) : Graph
$font string
return Graph
Example #1
0
 public function testAddAndSetFont2()
 {
     $this->setExpectedException('Pop\\Graph\\Exception');
     $g = new Graph($this->pdfOptions);
     $g->addFont(__DIR__ . '/../tmp/times.ttf');
     $g->setFont('bogus');
 }