app/Report/ReportHtml.php
public function getStringWidth(string $text): float
    {
        $style = $this->getStyle($this->currentStyle);

        return mb_strlen($text) * ($style['size'] / 2);
    }
public function getStringWidth(string $text): float
    {
        $style = $this->getStyle($this->currentStyle);

        return mb_strlen($text) * ($style['size'] / 2);
    }
public function getStringWidth ( string $ text ) : float { $ style = $ this -> getStyle ( $ this -> currentStyle ) ; return mb_strlen ( $ text ) * ( $ style [ 'size' ] / 2 ) ; }
Get the width of a string.

@param string $text

@return float
Get the width of a string .