Skip to content

Commit

Permalink
text/v2: improve Draw comments for multiline rendering
Browse files Browse the repository at this point in the history
Updates #3169
  • Loading branch information
hajimehoshi committed Dec 14, 2024
1 parent 52be385 commit f0a335d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions text/v2/layout.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ type LayoutOptions struct {
// face is the font for text rendering.
//
// The '\n' newline character puts the following text on the next line.
// The next line starts at the position shifted by LayoutOptions.LineSpacing.
// By default, LayoutOptions.LineSpacing is 0, so you need to specify LineSpacing explicitly if you want to put multiple lines.
//
// Glyphs used for rendering are cached in least-recently-used way.
// Then old glyphs might be evicted from the cache.
Expand Down

0 comments on commit f0a335d

Please sign in to comment.