txt

package
v0.0.0-...-aacbedc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Allignment

type Allignment uint8
const (
	Allignment_TopLeft Allignment = iota
	Allignment_TopCenter
	Allignment_TopRight
	Allignment_MiddleLeft
	Allignment_MiddleCenter
	Allignment_MiddleRight
	Allignment_BottomLeft
	Allignment_BottomCenter
	Allignment_BottomRight
)

type CharSet

type CharSet uint8
const (
	CharSet_0020_007F CharSet = iota
)

func (CharSet) Max

func (cs CharSet) Max() rune

func (CharSet) Min

func (cs CharSet) Min() rune

type Font

type Font struct {
	Size       uint64 // Size is based on the height of character
	LineHeight uint64 // Space between lines
	Allignment Allignment
	// contains filtered or unexported fields
}

func MustNewFontFromFile

func MustNewFontFromFile(path string, cw, ch int, charSet CharSet, opt Font) Font

func (Font) Draw

func (f Font) Draw(screen *ebiten.Image, str string, px, py int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL