From e05cfdb00a57cafcd26100735dbd2c8b8af0d0d4 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 4 Apr 2022 01:56:29 +0900 Subject: [PATCH] text: update comments about `BoundsString` The way in which space characters are treated is exactly same as golang.org/x/image/font's `BoundsString`. Updates #1992 --- text/text.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text/text.go b/text/text.go index 653d08976..317226b6d 100644 --- a/text/text.go +++ b/text/text.go @@ -268,7 +268,7 @@ func DrawWithOptions(dst *ebiten.Image, text string, face font.Face, options *eb // 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, -// but this BoundString calculates the actual rendered area considering multiple lines and space characters. +// but this BoundString calculates the actual rendered area considering multiple lines. // // face is the font for text rendering. // text is the string that's being measured.