From c7dc7b9da01cd1628599d7f26dbe31b0ed3c5c14 Mon Sep 17 00:00:00 2001 From: Xavier Noguer Gallego Date: Wed, 1 Oct 2003 13:07:35 +0000 Subject: [PATCH] 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 --- Writer/Format.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Writer/Format.php b/Writer/Format.php index fd31ff6..7eacc61 100644 --- a/Writer/Format.php +++ b/Writer/Format.php @@ -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; + } } ?>