@@ 940-944 (lines=5) @@ | ||
937 | ||
938 | if ($this->use_ttf == 1) { |
|
939 | $title_size = $this->TTFBBoxSize($this->title_ttffont_size, $this->title_angle, $this->title_ttffont, 'X'); //An array |
|
940 | if ($nbLines == 1) { |
|
941 | $this->y_top_margin = $title_size[1] * 4; |
|
942 | } else { |
|
943 | $this->y_top_margin = $title_size[1] * ($nbLines+3); |
|
944 | } |
|
945 | ||
946 | //ajo working here |
|
947 | //$x_label_size = $this->TTFBBoxSize($this->x_label_ttffont_size, 0, $this->axis_ttffont, $this->x_label_txt); |
|
@@ 955-959 (lines=5) @@ | ||
952 | } else { |
|
953 | $title_size = array(ImageFontWidth($this->title_font) * strlen($this->title_txt),ImageFontHeight($this->title_font)); |
|
954 | //$this->y_top_margin = ($title_size[1] * 4); |
|
955 | if ($nbLines == 1) { |
|
956 | $this->y_top_margin = $title_size[1] * 4; |
|
957 | } else { |
|
958 | $this->y_top_margin = $title_size[1] * ($nbLines+3); |
|
959 | } |
|
960 | if ($this->x_datalabel_angle == 90) { |
|
961 | $this->y_bot_margin = 76.0; // Must be integer |
|
962 | } else { |