PHP 8 doesnt support with imagettfbbox. Replaced with imageftbbox. By @kvvaradha.
[fa-stable.git] / reporting / includes / class.graphic.inc
index 4d1e5bb9be2b8e4e44fe3e33f7efe7e4353e0c3a..5e1f5db1b778ca878d4e632cd0172847b78975d1 100644 (file)
@@ -1217,7 +1217,7 @@ class Chart
 
        function string_width($string, $size) 
        {
-               $p = imagettfbbox($size, 0, $this->fontfile, $string);
+               $p = imageftbbox($size, 0, $this->fontfile, $string);
                return $p[4] - $p[0];
        }