25 #require_once 'Zend/Pdf/Element/Array.php'; 26 #require_once 'Zend/Pdf/Element/Dictionary.php'; 27 #require_once 'Zend/Pdf/Element/Name.php'; 28 #require_once 'Zend/Pdf/Element/Numeric.php'; 31 #require_once 'Zend/Pdf/Font.php'; 56 #require_once 'Zend/Pdf/Exception.php'; 57 throw new Zend_Pdf_Exception(
'Zend_Pdf_Resource_Font_FontDescriptor is not intended to be instantiated');
95 if ($fontParser->isMonospaced) {
98 if ($fontParser->isSerifFont) {
101 if (! $fontParser->isAdobeLatinSubset) {
104 if ($fontParser->isScriptFont) {
107 if ($fontParser->isAdobeLatinSubset) {
110 if ($fontParser->isItalic) {
161 if (! $fontParser->isEmbeddable) {
166 $message =
'This font cannot be embedded in the PDF document. If you would like to use ' 167 .
'it anyway, you must pass Zend_Pdf_Font::EMBED_SUPPRESS_EMBED_EXCEPTION ' 168 .
'in the $options parameter of the font constructor.';
169 #require_once 'Zend/Pdf/Exception.php'; 184 $fontFileObject = $font->
getFactory()->newStreamObject($fontFile);
192 if ($fontParser instanceof Zend_Pdf_FileParser_Font_OpenType_Type1 ) {
193 $fontDescriptor->FontFile = $fontFileObject;
195 $fontDescriptor->FontFile2 = $fontFileObject;
197 $fontDescriptor->FontFile3 = $fontFileObject;
202 return $fontDescriptor;
const FONT_CANT_BE_EMBEDDED
static factory(Zend_Pdf_Resource_Font $font, Zend_Pdf_FileParser_Font_OpenType $fontParser, $embeddingOptions)
const EMBED_DONT_COMPRESS
const EMBED_SUPPRESS_EMBED_EXCEPTION