ttf

package
v0.0.0-...-226917b Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lookup

type Lookup struct {
	// contains filtered or unexported fields
}

func NewLookup

func NewLookup() *Lookup

func (*Lookup) Add

func (l *Lookup) Add(name draw.Font, ttf []byte) error

func (*Lookup) AddAlias

func (l *Lookup) AddAlias(target draw.Font, name draw.Font)

func (*Lookup) Index

func (l *Lookup) Index(s string, x float64, name draw.Font, size float64) int

func (*Lookup) LoadFont

func (l *Lookup) LoadFont(name draw.Font, size float64) font.Face

func (*Lookup) Measure

func (l *Lookup) Measure(s string, name draw.Font, size float64) draw.TextMetrics

func (*Lookup) Must

func (l *Lookup) Must(name draw.Font, ttf []byte)

func (*Lookup) SetSize

func (l *Lookup) SetSize(s float64)

Jump to

Keyboard shortcuts

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