mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
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
This commit is contained in:
parent
4b0967be42
commit
e05cfdb00a
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user