Adapter/GD.php
public static function TTFBox($font, $text, $size, $angle = 0)
    {
        $box = imagettfbbox($size, $angle, $font, $text);

        return array(
            'width'  => abs($box[2] - $box[0]),
            'height' => abs($box[3] - $box[5]),
        );
    }
public static function TTFBox($font, $text, $size, $angle = 0)
    {
        $box = imagettfbbox($size, $angle, $font, $text);

        return array(
            'width'  => abs($box[2] - $box[0]),
            'height' => abs($box[3] - $box[5]),
        );
    }
public static function TTFBox ( $ font , $ text , $ size , $ angle = 0 ) { $ box = imagettfbbox ( $ size , $ angle , $ font , $ text ) ; return array ( 'width' => abs ( $ box [ 2 ] - $ box [ 0 ] ) , 'height' => abs ( $ box [ 3 ] - $ box [ 5 ] ) , ) ; }
Gets the width and the height for writing some text.
Gets the width and the height for writing some text .