Skip to content

Commit

Permalink
Add support to specify text sizes via formats. MDL-13505
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Feb 18, 2008
1 parent c4e643d commit 48c52be
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/excellib.class.php
Expand Up @@ -302,6 +302,16 @@ function MoodleExcelFormat(&$workbook, $properties = array()) {
}
}

/**
* 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.
Expand Down

0 comments on commit 48c52be

Please sign in to comment.