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