Example #1
0
 /**
  * Object constructor
  *
  * @param string $fontName
  * @throws Zend_Pdf_Exception
  */
 public function __construct($fontName)
 {
     if (!in_array($fontName, Zend_Pdf_Const::$standardFonts)) {
         throw new Zend_Pdf_Exception('Wrong font name');
     }
     parent::__construct();
     $this->_resource->Subtype = new Zend_Pdf_Element_Name('Type1');
     $this->_resource->BaseFont = new Zend_Pdf_Element_Name($fontName);
 }