setFontSize() public method

Defines the size of the current font.
See also: setFont()
public setFontSize ( float $size )
$size float The size (in points).
Exemplo n.º 1
0
 public function testHelloWorldCompressed()
 {
     $pdf = new Horde_Pdf_Writer(array('orientation' => 'P', 'format' => 'A4'));
     $pdf->setInfo('CreationDate', $this->fixtureCreationDate());
     $pdf->open();
     $pdf->setCompression(false);
     $pdf->addPage();
     $pdf->setFont('Courier', '', 8);
     $pdf->text(100, 100, 'First page');
     $pdf->setFontSize(20);
     $pdf->text(100, 200, 'HELLO WORLD!');
     $pdf->addPage();
     $pdf->setFont('Arial', 'BI', 12);
     $pdf->text(100, 100, 'Second page');
     $actual = $pdf->getOutput();
     $expected = $this->fixture('hello_world_compressed');
     $this->assertEquals($expected, $actual);
 }