From 7aa3ea02ac30cc468c832608c992dbdc490665f2 Mon Sep 17 00:00:00 2001 From: Aimer Neige Date: Thu, 31 Aug 2023 22:00:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E4=BC=9A=E6=9B=B4=E6=96=B0=E4=BE=9D?= =?UTF-8?q?=E8=B5=96=E5=BA=93=F0=9F=98=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/chess/core.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/chess/core.go b/plugin/chess/core.go index 1e2af09924..abc7b31110 100644 --- a/plugin/chess/core.go +++ b/plugin/chess/core.go @@ -13,6 +13,7 @@ import ( "time" "github.com/FloatTech/gg" + "github.com/FloatTech/zbputils/img/text" "github.com/RomiChan/syncx" "github.com/jinzhu/gorm" "github.com/notnil/chess" @@ -604,8 +605,7 @@ func generateCharBoardImage(boardString string) (string, error) { dc.SetRGB(1, 1, 1) dc.Clear() dc.SetRGB(0, 0, 0) - // TODO: upload this font to zbpdata - fnt := "./unifont-15.0.06.ttf" + fnt := text.GNUUnifontFontFile if err := dc.LoadFontFace(fnt, FontSize); err != nil { return "", err }