_isScreened) { return; } parent::screen(); switch ($this->_readScalerType()) { case 0x00010000: // version 1.0 - Windows TrueType signature break; case 0x74727565: // 'true' - Macintosh TrueType signature break; default: #require_once 'Zend/Pdf/Exception.php'; throw new Zend_Pdf_Exception('Not a TrueType font file', Zend_Pdf_Exception::WRONG_FONT_TYPE); } $this->fontType = Zend_Pdf_Font::TYPE_TRUETYPE; $this->_isScreened = true; } /** * Reads and parses the TrueType font data from the file on disk. * * @throws Zend_Pdf_Exception */ public function parse() { if ($this->_isParsed) { return; } parent::parse(); /* There is nothing additional to parse for TrueType fonts at this time. */ $this->_isParsed = true; } }