classes/SimplePdf/Page.php
public function setFont(\ZendPdf\Resource\Font\AbstractFont $font, $fontSize = null)
    {
        if (is_null($fontSize)) {
            $fontSize = $this->getFontSize();
        }

        return parent::setFont($font, $fontSize);
    }
public function setFont(\ZendPdf\Resource\Font\AbstractFont $font, $fontSize = null)
    {
        if (is_null($fontSize)) {
            $fontSize = $this->getFontSize();
        }

        return parent::setFont($font, $fontSize);
    }
public function setFont ( \ ZendPdf \ Resource \ Font \ AbstractFont $ font , $ fontSize = null ) { if ( is_null ( $ fontSize ) ) { $ fontSize = $ this -> getFontSize ( ) ; } return parent :: setFont ( $ font , $ fontSize ) ; }
Sets a new font family and, optionally, a new font size as well

@param \ZendPdf\Resource\Font\AbstractFont $font font object to use
@param float $fontSize new font size, leave it out to keep the current font size
Sets a new font family and optionally a new font size as well