adding setFontFamily() method (Donnie Miller).

git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@141433 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Xavier Noguer Gallego 2003-10-01 13:07:35 +00:00
parent 8c60af5d88
commit c7dc7b9da0
1 changed files with 13 additions and 1 deletions

View File

@ -871,7 +871,7 @@ class Spreadsheet_Excel_Writer_Format extends PEAR
$this->_rotation = 1;
break;
default :
$this->raiseError("Invalid value for angle.".
return $this->raiseError("Invalid value for angle.".
" Possible values are: 0, 90, 270 and -1 ".
"for stacking top-to-bottom.");
$this->_rotation = 0;
@ -942,5 +942,17 @@ class Spreadsheet_Excel_Writer_Format extends PEAR
{
$this->_locked = 0;
}
/**
* Sets the font family name.
*
* @access public
* @param string $fontfamily The font family name. Possible values are:
* 'Times New Roman', 'Arial', 'Courier'.
*/
function setFontFamily($font_family)
{
$this->_font_name = $font_family;
}
}
?>