Home  >  Q&A  >  body text

php - imagick里面怎么设置fontweight,用setFontWeight没用,是和字体文件有关吗?字体文件是ttf

 $text_img = new ImagickDraw();
 $text_img->setFont($font);
 $text_img->setGravity(Imagick::GRAVITY_NORTH);
 $text_img->setFillColor(new ImagickPixel($color));
 $text_img->setFontSize($font_size);
 $text_img->setFontWeight(100);
 
 
 
   这样设置字体weight没用,用的ttf的字体,写的出来的图片没用效果,weight都是一样的。。。是什么问题
PHPzPHPz2654 days ago350

reply all(0)I'll reply

No reply
  • Cancelreply