code: public function getGlyphs(){
  
  		if(
  			!isset($this->xmlDocument->defs[0]->font[0]->glyph) ||
  			!count($this->xmlDocument->defs[0]->font[0]->glyph)
  		){
  			return array();
  		}
  		$glyphs = array();
  		foreach($this->xmlDocument->defs[0]->font[0]->glyph as $xmlGlyph){
  			if(isset($xmlGlyph['unicode']) && isset($xmlGlyph['d'])){
  				$glyph = array(
  					'char' => (string)$xmlGlyph['unicode'],
  					'path' => (string)$xmlGlyph['d'],
  				);
  				if(isset($xmlGlyph['glyph-name'])){
  					$glyph['name'] = (string)$xmlGlyph['glyph-name'];
  				}
  				if(isset($xmlGlyph['horiz-adv-x'])){
  					$glyph['width'] = (string)$xmlGlyph['horiz-adv-x'];
  				}
  				$glyphs[] = $glyph;
  			}
  		}
  		return $glyphs;
  	}
docs: get all glyphs
  
  @return array set of glyph arrays containing char, path, name and width (name and with are optional)