font

package
v0.0.0-...-b6c76eb Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 6 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cursor

type Cursor uint8
const (
	DefaultCursor Cursor = iota
	NoCursor
	TextCursor
	PointerCursor
	ProgressCursor
	VerticalResizeCursor
	HorizontalResizeCursor
	ResizeCursor
)

type Face

type Face struct {
	Face font.Face
}

func DefaultFont

func DefaultFont(size int, scaling float64) Face

Returns default font (DroidSansMono) with specified size and scaling

func NewFace

func NewFace(ttf []byte, size int) (Face, error)

NewFace returns a new face by parsing the ttf font.

func (Face) Metrics

func (face Face) Metrics() font.Metrics

Jump to

Keyboard shortcuts

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