mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 08:46:55 +08:00
This commit is contained in:
1 parent
cfbaa8a177
commit
2c06e5ff69
43 files changed
+3211
-397
No files matched your search
@@ -49,7 +49,7 @@ type glyphOutlineKey struct {
|
||||
func (r *Renderer) PositionText(object TextObject, state RenderState) (*PositionedText, error) {
|
||||
result := &PositionedText{Run: TextRun{ID: object.ID, Text: object.Text()}}
|
||||
result.Run.Boxes = make([]Box, len([]rune(result.Run.Text)))
|
||||
if object.Visible != nil && !*object.Visible {
|
||||
if state.Hidden || object.Visible != nil && !*object.Visible {
|
||||
return result, nil
|
||||
}
|
||||
geometry, err := r.Geometry()
|
||||
|
||||
Reference in new issue
Block a user