src/MadeYourDay/SVG/Font.php
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;

	}
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;

	}
returns font options stored in the XML document

@return array font options