style(代码风格): 整理声明顺序与字体模块
build.yaml / build (push) Successful in 51s

This commit is contained in:
xiaoqidun committed 2026-09-28 15:17:45 +08:00
1 parent 5e0da3da28
commit ee6c9f6a16
82 files changed
+4316 -4310

No files matched your search

+3 -3
View File
@@ -44,6 +44,9 @@ type fontShaper struct {
shapeBuffer *harfbuzz.Buffer
}
// shapingFace 固定双向排版的字体来源,不隐式替换字体
type shapingFace struct{ face *typefont.Face }
// ShapeText 使用默认选项塑形单行文字,不改动原文定位
// 入参: value 单行原文, size 毫米字号
// 返回: []ShapedGlyph 定位字形, error 塑形错误
@@ -152,9 +155,6 @@ func (f *fontShaper) ShapeTextWithOptions(value string, size float64, options Te
return result, nil
}
// shapingFace 固定双向排版的字体来源,不隐式替换字体
type shapingFace struct{ face *typefont.Face }
// ResolveFace 返回指定字体
// 入参: char 字符
// 返回: *typefont.Face 字体