diff -r 5e7a0fedabdf -r 877f952ae2bd web/lib/Zend/Pdf/Resource/Font/CidFont.php --- a/web/lib/Zend/Pdf/Resource/Font/CidFont.php Thu Mar 21 17:31:31 2013 +0100 +++ b/web/lib/Zend/Pdf/Resource/Font/CidFont.php Thu Mar 21 19:50:53 2013 +0100 @@ -15,9 +15,9 @@ * @category Zend * @package Zend_Pdf * @subpackage Fonts - * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) + * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License - * @version $Id: CidFont.php 20096 2010-01-06 02:05:09Z bkarwin $ + * @version $Id: CidFont.php 24664 2012-02-26 16:36:51Z adamlundrigan $ */ /** Internally used classes */ @@ -51,7 +51,7 @@ * * @package Zend_Pdf * @subpackage Fonts - * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) + * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ abstract class Zend_Pdf_Resource_Font_CidFont extends Zend_Pdf_Resource_Font @@ -129,7 +129,9 @@ $charGlyphs = $this->_cmap->getCoveredCharactersGlyphs(); $charWidths = array(); foreach ($charGlyphs as $charCode => $glyph) { - $charWidths[$charCode] = $glyphWidths[$glyph]; + if(isset($glyphWidths[$glyph]) && !is_null($glyphWidths[$glyph])) { + $charWidths[$charCode] = $glyphWidths[$glyph]; + } } $this->_charWidths = $charWidths; $this->_missingCharWidth = $glyphWidths[0];