ImageMagick: how to draw two strings with different size over image?
问题 I want to draw a rectangle with two strings in it. I want the first string to be 15pt size (its a number), second to be 10pt size (the label). It's easy to draw single string with one size to the rectangle, I do it like this: $image = new Imagick('someimage.png'); $draw = new ImagickDraw; $draw->setGravity(Imagick::GRAVITY_CENTER); $draw->setfont(__DIR__ . DS . 'TREBUCBD.TTF'); $draw->setfontsize(15); $draw->annotation(0, 0, '50 points'); $image->drawImage($draw); The idea here is to have "50