Skip to content

Commit

Permalink
🎨 改进代码样式 (#648)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] authored Mar 30, 2023
1 parent df4c043 commit 52ef28c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/font/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ func init() {
ctx.SendChain(message.Text("ERROR: ", err))
return
}
//获得画布预计
// 获得画布预计
testcov := gg.NewContext(1, 1)
if err = testcov.ParseFontFace(data, 30); err != nil {
ctx.SendChain(message.Text("ERROR: ", err))
return
}
//取最长段
// 取最长段
txt = ""
for _, v := range strlist {
if len([]rune(v)) > len([]rune(txt)) {
Expand Down

0 comments on commit 52ef28c

Please sign in to comment.