ZF-11943: Zend_Pdf_Resource_Font_CidFont emits warning when attempting to count width of nonexistent glyph


When I set font with path, there are an issue on line 131 of CidFont.php because the array contain a null variable. The error display is "Warning: array_count_values() [function.array-count-values]: Can only count STRING and INTEGER values!" I resolved the problem with this code :

foreach ($charGlyphs as $charCode => $glyph) { 
    // Begin Addition
    if( null == $glyphWidths[$glyph] ) continue;
    // End Addition
    $charWidths[$charCode] = $glyphWidths[$glyph];

This call is $page->setFont(Zend_Pdf_Font::fontWithPath('../BOBTAG.TTF', Zend_Pdf_Font::EMBED_SUPPRESS_EMBED_EXCEPTION), 36);


Fixed in trunk r24664 Merged to release-1.11 in r24665