From f7cd13643ea3490f42b44cfa0b956b22a7eb934e Mon Sep 17 00:00:00 2001 From: Simon Morris Date: Tue, 18 Feb 2020 11:20:34 +0000 Subject: [PATCH] Fix Roboto descenders When used with the example Roboto font, the Y offset pushes the descenders of the font below the canvas edge and they get cut off. Removing this fixes the issue. --- src/Feature/CopyrightNotice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Feature/CopyrightNotice.php b/src/Feature/CopyrightNotice.php index d9dcfe7..4c0fb71 100644 --- a/src/Feature/CopyrightNotice.php +++ b/src/Feature/CopyrightNotice.php @@ -74,7 +74,7 @@ public function render(ImageManager $imageManager, Image $image, ViewportInterfa $watermarkBackground = $imageManager->canvas($size['width'] + 10, $size['height'] + 5, $this->BackgroundColor); $watermark = $imageManager->canvas($size['width'], $size['height']); - $font->applyToImage($watermark, 0, 2); + $font->applyToImage($watermark, 0, 0); $watermarkBackground->insert($watermark, 'center');