bitmap

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KernElemSize = 2*1 + 4
)
View Source
const (
	OffKerns = offNumKerns + 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Face

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

func NewFace

func NewFace(data []byte) *Face

func (*Face) Glyph

func (f *Face) Glyph(r rune) (*alpha4.Image, fixed.Int26_6, bool)

func (*Face) GlyphAdvance

func (f *Face) GlyphAdvance(r rune) (fixed.Int26_6, bool)

func (*Face) Kern

func (f *Face) Kern(r1, r2 rune) fixed.Int26_6

func (*Face) Metrics

func (f *Face) Metrics() font.Metrics

type Glyph

type Glyph struct {
	Advance  fixed.Int26_6
	ImageOff uint16
	Rect     alpha4.Rectangle
}

type Kern

type Kern struct {
	R1, R2 uint8
	Kern   fixed.Int26_6
}

Jump to

Keyboard shortcuts

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