PHP 8 doesnt support with imagettfbbox. Replaced with imageftbbox. By @kvvaradha.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 11 Oct 2021 07:36:33 +0000 (09:36 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 11 Oct 2021 07:36:33 +0000 (09:36 +0200)
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];
        }