Intervention/image — pull request #165 by djekl (2014-06-20 17:24:41+00:00)
Title: make getBoxSize() a public method

Can I request this is made a public method.

I was using it within the v1 api implementation, the function below allows me to calculate the font size required to fit the image width provided

```php
private function calculateFontSize($width, $text = '', $fontFile, $fontSize = 80) {
$fontClassName = sprintf('\Intervention\Image\%s\Font', $this->image_driver);

$font = new $fontClassName($text);
$font->file($fontFile);
$font->size($fontSize);
$font->align('center');
$font->valign('center');

$box = $font->getBoxSize();

do {
(int)$fontSize -= 2;
$font->size($fontSize);
$box = $font->getBoxSize();
} while (($box['width'] >= ($width - 20)));

return $fontSize;
}
```