text/v2: improve Draw comments for multiline rendering

Updates #3169
This commit is contained in:
Hajime Hoshi 2024-12-14 19:02:13 +09:00
parent 52be3859c0
commit f0a335d3cc

View File

@ -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.