From 48c52be77ab84d16e63a0824192c7da4ee8e7b6b Mon Sep 17 00:00:00 2001 From: stronk7 Date: Mon, 18 Feb 2008 10:52:32 +0000 Subject: [PATCH] Add support to specify text sizes via formats. MDL-13505 --- lib/excellib.class.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/excellib.class.php b/lib/excellib.class.php index 97a995f5019..c76de104605 100644 --- a/lib/excellib.class.php +++ b/lib/excellib.class.php @@ -302,6 +302,16 @@ class MoodleExcelFormat { } } + /** + * Set the size of the text in the format (in pixels). + * By default all texts in generated sheets are 10px. + * @param integer $size Size of the text (in pixels) + */ + function set_size($size) { + /// Set the size safely to the PEAR Format + $this->pear_excel_format->setSize($size); + } + /* Set weight of the format * @param integer $weight Weight for the text, 0 maps to 400 (normal text), * 1 maps to 700 (bold text). Valid range is: 100-1000.