25 #require_once 'Zend/Pdf/Element/Array.php'; 26 #require_once 'Zend/Pdf/Element/Name.php'; 27 #require_once 'Zend/Pdf/Element/Numeric.php'; 31 #require_once 'Zend/Pdf/Resource/Font/Simple.php'; 53 parent::__construct();
60 $this->_fontNames = $fontParser->names;
62 $this->_isBold = $fontParser->isBold;
63 $this->_isItalic = $fontParser->isItalic;
64 $this->_isMonospaced = $fontParser->isMonospaced;
66 $this->_underlinePosition = $fontParser->underlinePosition;
67 $this->_underlineThickness = $fontParser->underlineThickness;
68 $this->_strikePosition = $fontParser->strikePosition;
69 $this->_strikeThickness = $fontParser->strikeThickness;
71 $this->_unitsPerEm = $fontParser->unitsPerEm;
73 $this->_ascent = $fontParser->ascent;
74 $this->_descent = $fontParser->descent;
75 $this->_lineGap = $fontParser->lineGap;
77 $this->_glyphWidths = $fontParser->glyphWidths;
78 $this->_missingGlyphWidth = $this->_glyphWidths[0];
81 $this->_cmap = $fontParser->cmap;
95 foreach ($this->_glyphWidths as $width) {
102 $widthsObject = $this->_objectFactory->newObject($widthsArrayElement);
103 $this->_resource->Widths = $widthsObject;
getFontName($nameType, $language, $characterSet=null)
__construct(Zend_Pdf_FileParser_Font_OpenType $fontParser)