app/Report/ReportHtml.php
public function getTextCellHeight(string $str): float
    {
        // Count the number of lines to calculate the height
        $nl = $this->countLines($str);

        // Calculate the cell height
        return ceil(($this->getCurrentStyleHeight() * $this->cellHeightRatio) * $nl);
    }
public function getTextCellHeight(string $str): float
    {
        // Count the number of lines to calculate the height
        $nl = $this->countLines($str);

        // Calculate the cell height
        return ceil(($this->getCurrentStyleHeight() * $this->cellHeightRatio) * $nl);
    }
public function getTextCellHeight ( string $ str ) : float { // Count the number of lines to calculate the height $ nl = $ this -> countLines ( $ str ) ; // Calculate the cell height return ceil ( ( $ this -> getCurrentStyleHeight ( ) * $ this -> cellHeightRatio ) * $ nl ) ; }
Get a text height in points - ReportHtml

@param string $str

@return float
Get a text height in points - ReportHtml