func drawSetfont(mw *imagick.MagickWand, dw *imagick.DrawingWand) { dw.SetFont(randFont()) pw := imagick.NewPixelWand() pw.SetColor(colors[rand.Intn(len(colors))]) dw.SetFontWeight(500) dw.SetFillColor(pw) dw.SetFontSize(33) pw.Destroy() }