]> git.mjollnir.org Git - moodle.git/commitdiff
Add support to specify text sizes via formats. MDL-13505 ; merged from 19_STABLE
authorstronk7 <stronk7>
Mon, 18 Feb 2008 10:54:14 +0000 (10:54 +0000)
committerstronk7 <stronk7>
Mon, 18 Feb 2008 10:54:14 +0000 (10:54 +0000)
lib/excellib.class.php

index 97a995f50199c34bad1dea55ab72194fa0efe0fb..c76de10460575074f0c4a174e5955fbf4fb9ed8c 100644 (file)
@@ -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.