lib/PHPPdf/Core/Node/Node.php
public function getFont(Document $document)
    {
        $fontType = $this->getRecurseAttribute('font-type');

        if($fontType)
        {
            $font = $document->getFont($fontType);
            
            $fontStyle = $this->getRecurseAttribute('font-style');
            if($fontStyle)
            {
                $font->setStyle($fontStyle);
            }

            return $font;
        }

        return null;
    }
public function getFont(Document $document)
    {
        $fontType = $this->getRecurseAttribute('font-type');

        if($fontType)
        {
            $font = $document->getFont($fontType);
            
            $fontStyle = $this->getRecurseAttribute('font-style');
            if($fontStyle)
            {
                $font->setStyle($fontStyle);
            }

            return $font;
        }

        return null;
    }
public function getFont ( Document $ document ) { $ fontType = $ this -> getRecurseAttribute ( 'font-type' ) ; if ( $ fontType ) { $ font = $ document -> getFont ( $ fontType ) ; $ fontStyle = $ this -> getRecurseAttribute ( 'font-style' ) ; if ( $ fontStyle ) { $ font -> setStyle ( $ fontStyle ) ; } return $ font ; } return null ; }
Gets font object associated with current object

@return Font
Gets font object associated with current object