1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-27 07:44:30 +02:00
This commit is contained in:
Oliver Vogel
2023-11-26 10:10:44 +01:00
parent 0d4fece93d
commit 5eb3eb5427
2 changed files with 4 additions and 4 deletions

View File

@@ -3,16 +3,16 @@
namespace Intervention\Image\Drivers;
use Intervention\Image\Exceptions\DecoderException;
use Intervention\Image\Geometry\Point;
use Intervention\Image\Interfaces\ColorInterface;
use Intervention\Image\Interfaces\DrawableInterface;
use Intervention\Image\Interfaces\PointInterface;
/**
* @property DrawableInterface $drawable
*/
abstract class DrawModifier extends DriverModifier
{
public function position(): Point
public function position(): PointInterface
{
return $this->drawable->position();
}

View File

@@ -45,7 +45,7 @@ class FontProcessor extends AbstractFontProcessor
return $polygon;
}
public function adjustedSize(): int
public function adjustedSize(): float
{
return floatval(ceil($this->font->size() * .75));
}
@@ -53,7 +53,7 @@ class FontProcessor extends AbstractFontProcessor
public function getGdFont(): int
{
if (is_numeric($this->font->filename())) {
return $this->font->filename();
return intval($this->font->filename());
}
return 1;