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:
parent
8c60af5d88
commit
c7dc7b9da0
|
|
@ -871,7 +871,7 @@ class Spreadsheet_Excel_Writer_Format extends PEAR
|
||||||
$this->_rotation = 1;
|
$this->_rotation = 1;
|
||||||
break;
|
break;
|
||||||
default :
|
default :
|
||||||
$this->raiseError("Invalid value for angle.".
|
return $this->raiseError("Invalid value for angle.".
|
||||||
" Possible values are: 0, 90, 270 and -1 ".
|
" Possible values are: 0, 90, 270 and -1 ".
|
||||||
"for stacking top-to-bottom.");
|
"for stacking top-to-bottom.");
|
||||||
$this->_rotation = 0;
|
$this->_rotation = 0;
|
||||||
|
|
@ -942,5 +942,17 @@ class Spreadsheet_Excel_Writer_Format extends PEAR
|
||||||
{
|
{
|
||||||
$this->_locked = 0;
|
$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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue