From 240e08c13a7b407ed31f3eb54f15b1b4892d6c7a Mon Sep 17 00:00:00 2001 From: Tom Witkowski Date: Thu, 14 Sep 2017 15:44:08 +0200 Subject: [PATCH] add getBoxSize() as abstract method --- src/Intervention/Image/AbstractFont.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Intervention/Image/AbstractFont.php b/src/Intervention/Image/AbstractFont.php index 8bcf3b28..cdc690f3 100644 --- a/src/Intervention/Image/AbstractFont.php +++ b/src/Intervention/Image/AbstractFont.php @@ -62,6 +62,13 @@ abstract class AbstractFont * @return boolean */ abstract public function applyToImage(Image $image, $posx = 0, $posy = 0); + + /** + * Calculates bounding box of current font setting + * + * @return array + */ + abstract public function getBoxSize(); /** * Create a new instance of Font