We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65353f0 commit 2797da3Copy full SHA for 2797da3
src/FontProcessor.php
@@ -14,6 +14,7 @@
14
use Intervention\Image\Interfaces\SizeInterface;
15
use Jcupitt\Vips\Align;
16
use Jcupitt\Vips\Image as VipsImage;
17
+use Jcupitt\Vips\TextWrap;
18
19
class FontProcessor extends AbstractFontProcessor
20
{
@@ -61,6 +62,7 @@ public function textToVipsImage(
61
62
'dpi' => 72,
63
'rgba' => true,
64
'width' => $font->wrapWidth(),
65
+ 'wrap' => TextWrap::WORD,
66
'align' => match ($font->alignment()) {
67
'center',
68
'middle' => Align::CENTRE,
0 commit comments