font

package
v0.0.0-...-50c553c Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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
}

func GetFont

func GetFont(name string) *Font

func LoadFont

func LoadFont(reader io.Reader, loc uint) *Font

func (*Font) Draw

func (font *Font) Draw(renderer *render.SpriteBatch, x, y float64, size float64, text string)

func (*Font) DrawAll

func (font *Font) DrawAll(renderer *render.SpriteBatch, words []Word)

func (*Font) DrawAndGetLastPosition

func (font *Font) DrawAndGetLastPosition(renderer *render.SpriteBatch, x, y float64, size float64, text string) float64

type Word

type Word struct {
	X    float64
	Size float64
	Text string
}

Jump to

Keyboard shortcuts

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