code: protected function getOptionsFromXML(){
  
  		$options = array();
  
  		foreach(array('id', 'horiz-adv-x') as $key){
  			if(isset($this->xmlDocument->defs[0]->font[0][$key])){
  				$options[$key] = (string)$this->xmlDocument->defs[0]->font[0][$key];
  			}
  		}
  		foreach(array('units-per-em', 'ascent', 'descent', 'x-height', 'cap-height') as $key){
  			if(isset($this->xmlDocument->defs[0]->font[0]->{'font-face'}[0][$key])){
  				$options[$key] = (string)$this->xmlDocument->defs[0]->font[0]->{'font-face'}[0][$key];
  			}
  		}
  
  		return $options;
  
  	}
docs: returns font options stored in the XML document
  
  @return array font options