In laravel 10 app with intervention/image 3.4 I want to show some text with code :
Код: Выделить всё
$this->transformImageManager = new ImageManager(new Driver()); $image = $this->transformImageManager->read($this->sourceImagePath); $image->text($label['text'], $x, $y, function ($font) use($size) { $font->filename('./fonts/DejaVuSans/DejaVuSans-Bold.ttf'); $font->color('#ff0213'); $font->align('center'); $font->valign('top'); $font->size(128);

I have similar small text labels on any size value I pass,
also I set valid path to DejaVuSans-Bold.ttf file.
What is wrong and how to fix it ?
Источник: https://stackoverflow.com/questions/781 ... small-size