lib/PHPRtfLite/Table.php
public function setFontForCellRange(PHPRtfLite_Font $font, $startRow, $startColumn, $endRow = null, $endColumn = null)
    {
        list($startRow, $startColumn, $endRow, $endColumn)
                = PHPRtfLite_Table::getValidCellRange($startRow, $startColumn, $endRow, $endColumn);

        if ($this->checkIfCellExists($startRow, $startColumn)
            && $this->checkIfCellExists($endRow, $endColumn))
        {
            $cells = $this->getCellsByCellRange($startRow, $startColumn, $endRow, $endColumn);
            foreach ($cells as $cell) {
                $cell->setFont($font);
            }
        }
    }
public function setFontForCellRange(PHPRtfLite_Font $font, $startRow, $startColumn, $endRow = null, $endColumn = null)
    {
        list($startRow, $startColumn, $endRow, $endColumn)
                = PHPRtfLite_Table::getValidCellRange($startRow, $startColumn, $endRow, $endColumn);

        if ($this->checkIfCellExists($startRow, $startColumn)
            && $this->checkIfCellExists($endRow, $endColumn))
        {
            $cells = $this->getCellsByCellRange($startRow, $startColumn, $endRow, $endColumn);
            foreach ($cells as $cell) {
                $cell->setFont($font);
            }
        }
    }
public function setFontForCellRange ( PHPRtfLite_Font $ font , $ startRow , $ startColumn , $ endRow = null , $ endColumn = null ) { list ( $ startRow , $ startColumn , $ endRow , $ endColumn ) = PHPRtfLite_Table :: getValidCellRange ( $ startRow , $ startColumn , $ endRow , $ endColumn ) ; if ( $ this -> checkIfCellExists ( $ startRow , $ startColumn ) && $ this -> checkIfCellExists ( $ endRow , $ endColumn ) ) { $ cells = $ this -> getCellsByCellRange ( $ startRow , $ startColumn , $ endRow , $ endColumn ) ; foreach ( $ cells as $ cell ) { $ cell -> setFont ( $ font ) ; } } }
sets font to empty cells of a given cell range

@param   PHPRtfLite_Font $font           font for empty cells. The method PHPRtfLite_Table_Cell->writeToCell() overrides it with another PHPRtfLite_Font.
@param   integer         $startRow       start row
@param   integer         $startColumn    start column
@param   integer         $endRow         end row, if null, then font is set only to the row range.
@param   integer         $endColumn      end column, if null, then font is set just to the column range.
sets font to empty cells of a given cell range