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 ¶
func (*Font) DrawTextWithShadow ¶
func (*Font) TextHeight ¶
Click to show internal directories.
Click to hide internal directories.