/** * Verifies that the font file actually contains TrueType outlines. * * @throws Zend_Pdf_Exception */ public function screen() { if ($this->_isScreened) { return; } parent::screen(); switch ($this->_readScalerType()) { case 0x10000: // version 1.0 - Windows TrueType signature break; case 0x74727565: // 'true' - Macintosh TrueType signature break; default: 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; }