Skip to content

Commit 8d29065

Browse files
committed
Fix integration tests error:
Magento\Framework\Image\Adapter\InterfaceTest::testCreatePngFromString with data set #1 (array(5, 12), array(0, 0, 0), array(0, 20), array(255, 255, 255), 'IMAGEMAGICK') ImagickException: unable to read font `' @ error/annotate.c/RenderFreetype/1636
1 parent f3136c9 commit 8d29065

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/internal/Magento/Framework/Image/Adapter/ImageMagick.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,9 @@ public function createPngFromString($text, $font = '')
484484
if (!empty($font)) {
485485
if (method_exists($image, 'setFont')) {
486486
$image->setFont($font);
487-
} elseif (method_exists($draw, 'setFont')) {
487+
}
488+
489+
if (method_exists($draw, 'setFont')) {
488490
$draw->setFont($font);
489491
}
490492
}

0 commit comments

Comments
 (0)