text

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alignment

type Alignment int
const (
	AlignStart Alignment = iota
	AlignEnd
	AlignCenter
)

type Line

type Line struct {
	Text  string
	Width int
	Dot   image.Point
}

type Style

type Style struct {
	Face          *bitmap.Face
	Alignment     Alignment
	LineHeight    float32
	LetterSpacing int
}

func (Style) Layout

func (l Style) Layout(maxWidth int, txt string) ([]Line, image.Point)

Jump to

Keyboard shortcuts

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