/** * Returns the height in points of the text element * * The height is already calculated in getWidth() * * @param WT_Report_HTML $html * * @return float */ function getHeight($html) { $ct = substr_count($this->text, "\n"); if ($ct > 0) { $ct += 1; } $style = $html->getStyle($this->styleName); return $style["size"] * $ct * $html->cellHeightRatio; }