Skip to content

Commit

Permalink
fix:调整meme帮助图片字体大小
Browse files Browse the repository at this point in the history
  • Loading branch information
Azusa-Yuan committed Jan 1, 2025
1 parent c1cdba2 commit 90ffb22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/meme/meme_core.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ func GetHelp() ([]byte, error) {
/***********设置字体颜色为黑色***********/
canvas.SetRGB(0, 0, 0)
/***********设置字体大小,并获取字体高度用来定位***********/
if err = canvas.ParseFontFace(data, fontSize*2); err != nil {
if err = canvas.ParseFontFace(data, fontSize*1.5); err != nil {
return nil, err
}
sl, h := canvas.MeasureString("表情包列表")
/***********绘制标题***********/
canvas.DrawString("表情包列表", (width-sl)/2, 140-1.2*h) // 放置在中间位置
/***********设置字体大小,并获取字体高度用来定位***********/
if err = canvas.ParseFontFace(data, 1.5*fontSize); err != nil {
if err = canvas.ParseFontFace(data, 1.2*fontSize); err != nil {
return nil, err
}

Expand Down

0 comments on commit 90ffb22

Please sign in to comment.