php - Test Imagick Image
one text
Solution:
You need to set the font in addition to font size before calling annotation:
/* Set font */
$draw->setFont('DejaVu-Sans');
/* Set font size to 52 */
$draw->setFontSize(52);
Note that available fonts are varying across setups, and you will get a "The path does not exist" error if you try to set the font which is not available to the Imagick library. You can figure them out by dumping Imagick::queryFonts()
results, or by executing convert -list font
command if you have ImageMagick tools installed.