feat(编辑能力): 完善原格式文字编辑,修复字体预览与文字定位问题
build.yaml / build (push) Successful in 37s

This commit is contained in:
xiaoqidun committed 2026-09-18 16:16:58 +08:00
1 parent ce05fe96af
commit 87457c4994
10 files changed
+529 -38

No files matched your search

+6 -3
View File
@@ -549,9 +549,12 @@ func (e *Editor) measureCompositeMembers(renderer *Renderer, nodes []*editorComp
if err := e.prepareText(&text); err != nil {
capability.ReasonCode, capability.Reason = editReason(err), err.Error()
errors.As(err, &capability.MissingGlyphs)
} else if _, err := text.TextFrame(); err == nil {
capability.Reflow = text.ReadDirection == 0 && text.CharDirection == 0
capability.LayoutKnown = text.layout != nil
} else {
capability.TextContent = text.ReadDirection == 0 && text.CharDirection == 0
if _, err := text.TextFrame(); err == nil {
capability.Reflow = capability.TextContent
capability.LayoutKnown = text.layout != nil
}
}
}
if transform && node.object.Type == "ImageObject" && bounds.box.W > 0 && bounds.box.H > 0 {