diff --git a/plugin/qqwife/command.go b/plugin/qqwife/command.go index b0d904c8..18453c28 100644 --- a/plugin/qqwife/command.go +++ b/plugin/qqwife/command.go @@ -264,7 +264,7 @@ func init() { canvas.DrawString("("+info[3]+")", 1150, float64(260+50*i)-h) } data, err := imgfactory.ToBytes(canvas.Image()) - if err = canvas.LoadFontFace(text.BoldFontFile, fontSize); err != nil { + if err != nil { ctx.SendChain(message.Text("[qqwife]ERROR: ", err)) return } diff --git a/plugin/qqwife/favorSystem.go b/plugin/qqwife/favorSystem.go index 94d166f6..2f310a8b 100644 --- a/plugin/qqwife/favorSystem.go +++ b/plugin/qqwife/favorSystem.go @@ -190,7 +190,7 @@ func init() { i++ } data, err := imgfactory.ToBytes(canvas.Image()) - if err = canvas.LoadFontFace(text.BoldFontFile, fontSize); err != nil { + if err != nil { ctx.SendChain(message.Text("[qqwife]ERROR: ", err)) return }