From 5ded1ba3cb7044ea07b25e52baad8a7a6de6d7fa Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Thu, 25 Jun 2026 16:01:05 +0800 Subject: [PATCH] =?UTF-8?q?style(=E4=BB=A3=E7=A0=81=E9=A3=8E=E6=A0=BC):=20?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E4=BB=A3=E7=A0=81=E9=A3=8E=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ofdgo_font_cff.go | 3 ++- ofdgo_text.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ofdgo_font_cff.go b/ofdgo_font_cff.go index d819949..ac89b8a 100644 --- a/ofdgo_font_cff.go +++ b/ofdgo_font_cff.go @@ -18,11 +18,12 @@ import ( "bytes" "encoding/binary" "fmt" - "golang.org/x/text/encoding/simplifiedchinese" "math" "sort" "strconv" "strings" + + "golang.org/x/text/encoding/simplifiedchinese" ) // wrapCFFToOTF 将 CFF 裸数据包装为 OpenType 字体格式 diff --git a/ofdgo_text.go b/ofdgo_text.go index f5437e0..25f45b9 100644 --- a/ofdgo_text.go +++ b/ofdgo_text.go @@ -15,10 +15,11 @@ package ofdgo import ( - "github.com/tdewolff/canvas" "image/color" "strconv" "strings" + + "github.com/tdewolff/canvas" ) // parseColor 解析颜色字符串