private function updateColumnWidths($value, $cellIndex, Font $font)
    {
        if ($this->useCellAutosizing) {
            $cellWidth = $this->sizeCalculator->getCellWidth($font->getName(), $font->getSize(), $value);
            if (!isset($this->columnWidths[$cellIndex])
                || $this->columnWidths[$cellIndex] < $cellWidth
            ) {
                $this->columnWidths[$cellIndex] = $cellWidth;
            }
        }
    }
private function updateColumnWidths($value, $cellIndex, Font $font)
    {
        if ($this->useCellAutosizing) {
            $cellWidth = $this->sizeCalculator->getCellWidth($font->getName(), $font->getSize(), $value);
            if (!isset($this->columnWidths[$cellIndex])
                || $this->columnWidths[$cellIndex] < $cellWidth
            ) {
                $this->columnWidths[$cellIndex] = $cellWidth;
            }
        }
    }
private function updateColumnWidths ( $ value , $ cellIndex , Font $ font ) { if ( $ this -> useCellAutosizing ) { $ cellWidth = $ this -> sizeCalculator -> getCellWidth ( $ font -> getName ( ) , $ font -> getSize ( ) , $ value ) ; if ( ! isset ( $ this -> columnWidths [ $ cellIndex ] ) || $ this -> columnWidths [ $ cellIndex ] < $ cellWidth ) { $ this -> columnWidths [ $ cellIndex ] = $ cellWidth ; } } }
Track cell width for column width sizing if its enabled.

@param mixed $value
@param int   $cellIndex
@param Font  $font
Track cell width for column width sizing if its enabled .