fnt

package
v0.0.0-...-21417f8 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fnt

type Fnt struct {
	Face font.Face
	Mu   sync.Mutex
}

func (*Fnt) Draw

func (x *Fnt) Draw(x1, y1, offX, offY float32, clr clr.Clr, img draw.Image, txt string)

func (*Fnt) Drawf

func (x *Fnt) Drawf(x1, y1, offX, offY float32, clr clr.Clr, img draw.Image, format string, args ...interface{})

func (*Fnt) Height

func (x *Fnt) Height() (r float32)

func (*Fnt) HeightUint32

func (x *Fnt) HeightUint32() (r uint32)

func (*Fnt) Width

func (x *Fnt) Width(txt string) (r float32)

type FntScp

type FntScp struct {
	Idx uint32
	Arr []*Fnt
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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