Documentation ¶
Index ¶
- type Font
- func (f *Font) DrawText(rt *ebiten.Image, str string, ox, oy, scale int, c color.Color) error
- func (f *Font) DrawTextOnImage(rt draw.Image, str string, ox, oy int) error
- func (f *Font) DrawTextWithShadow(rt *ebiten.Image, str string, x, y, scale int, clr color.Color) error
- func (f *Font) TextHeight(str string) int
- func (f *Font) TextWidth(str string) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Font ¶
type Font struct {
// contains filtered or unexported fields
}
var (
ArcadeFont *Font
)
func (*Font) DrawTextOnImage ¶ added in v1.4.0
func (*Font) DrawTextWithShadow ¶
func (*Font) TextHeight ¶ added in v1.4.0
Click to show internal directories.
Click to hide internal directories.