text: update comments

Updates #1992
This commit is contained in:
Hajime Hoshi 2022-04-04 02:55:09 +09:00
parent 6710808cd1
commit 04d1dbb263

View File

@ -267,8 +267,8 @@ func DrawWithOptions(dst *ebiten.Image, text string, face font.Face, options *eb
// The bound's origin point indicates the dot (period) position. // The bound's origin point indicates the dot (period) position.
// This means that if the text consists of one character '.', this dot is rendered at (0, 0). // This means that if the text consists of one character '.', this dot is rendered at (0, 0).
// //
// This is very similar to golang.org/x/image/font's BoundString, // BoundString behaves almost exactly like golang.org/x/image/font's BoundString,
// but this BoundString calculates the actual rendered area considering multiple lines. // but newline characters '\n' in the input string move the text position to the following line.
// //
// face is the font for text rendering. // face is the font for text rendering.
// text is the string that's being measured. // text is the string that's being measured.