lib/PHPWord/PHPWord/Style.php
public static function addFontStyle($styleName, $styleFont, $styleParagraph = null) {
		if(!array_key_exists($styleName, self::$_styleElements)) {
			$font = new PHPWord_Style_Font('text', $styleParagraph);
			foreach($styleFont as $key => $value) {
				if(substr($key, 0, 1) != '_') {
					$key = '_'.$key;
				}
				$font->setStyleValue($key, $value);
			}
			self::$_styleElements[$styleName] = $font;
		}
	}
public static function addFontStyle($styleName, $styleFont, $styleParagraph = null) {
		if(!array_key_exists($styleName, self::$_styleElements)) {
			$font = new PHPWord_Style_Font('text', $styleParagraph);
			foreach($styleFont as $key => $value) {
				if(substr($key, 0, 1) != '_') {
					$key = '_'.$key;
				}
				$font->setStyleValue($key, $value);
			}
			self::$_styleElements[$styleName] = $font;
		}
	}
public static function addFontStyle ( $ styleName , $ styleFont , $ styleParagraph = null ) { if ( ! array_key_exists ( $ styleName , self :: $ _styleElements ) ) { $ font = new PHPWord_Style_Font ( 'text' , $ styleParagraph ) ; foreach ( $ styleFont as $ key => $ value ) { if ( substr ( $ key , 0 , 1 ) != '_' ) { $ key = '_' . $ key ; } $ font -> setStyleValue ( $ key , $ value ) ; } self :: $ _styleElements [ $ styleName ] = $ font ; } }
Add a font style

@param string $styleName
@param array $styleFont
@param array $styleParagraph
Add a font style