mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 08:46:55 +08:00
This commit is contained in:
1 parent
ce05fe96af
commit
87457c4994
10 files changed
+529
-38
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user