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 解析颜色字符串