Skip to content

Commit

Permalink
Merge pull request #68 from nadavshatz/patch-1
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
tdewolff committed Dec 7, 2020
2 parents ce77df4 + 786f50a commit 8c80814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func NewTextLine(ff FontFace, s string, halign TextAlign) *Text {
return &Text{lines, map[*Font]bool{ff.Font: true}}
}

// NewTextBox is an advanced text formatter that will calculate text placement based on the setteings. It takes a font face, a string, the width or height of the box (can be zero for no limit), horizontal and vertical alignment (Left, Center, Right, Top, Bottom or Justify), text indentation for the first line and line stretch (percentage to stretch the line based on the line height).
// NewTextBox is an advanced text formatter that will calculate text placement based on the settings. It takes a font face, a string, the width or height of the box (can be zero for no limit), horizontal and vertical alignment (Left, Center, Right, Top, Bottom or Justify), text indentation for the first line and line stretch (percentage to stretch the line based on the line height).
func NewTextBox(ff FontFace, s string, width, height float64, halign, valign TextAlign, indent, lineStretch float64) *Text {
return NewRichText().Add(ff, s).ToText(width, height, halign, valign, indent, lineStretch)
}
Expand Down

0 comments on commit 8c80814

Please sign in to comment.