Skip to content

Commit

Permalink
Fix indenting for RichText/TextBox, fixes #265
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed Jan 15, 2024
1 parent 65a52f0 commit 3d69968
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions text.go
Original file line number Diff line number Diff line change
@@ -788,6 +788,9 @@ func (rt *RichText) ToText(width, height float64, halign, valign TextAlign, inde
} else if halign == Center || halign == Middle {
x += (width - breaks[j].Width) / 2.0
}
if j == 0 {
x += indent
}

line := line{}
a := ag

0 comments on commit 3d69968

Please sign in to comment.