feat(后端架构): 优化多后端渲染,修复描边与字形校验
build.yaml / build (push) Successful in 40s

This commit is contained in:
xiaoqidun committed 2026-09-23 20:04:48 +08:00
1 parent f44d0d8a60
commit 580e7043c4
31 files changed
+1488 -204

No files matched your search

+2
View File
@@ -63,7 +63,9 @@ func missingGlyphError(id string, characters []rune) error {
// LineHeight为毫米单位的基线间距,0使用字体度量;LetterSpacing为字素间的附加毫米间距,可为负
// LeftIndent和RightIndent为左右缩进,FirstLineIndent为每段首行相对左缩进的偏移,单位为毫米
// 零值保持显式换行和左对齐
// Shape显式启用FontShaper,保存为标准TextCode和CGTransform,不改变阅读时的原文定位
type TextLayout struct {
Shape bool
Wrap bool
Align string
LineHeight float64