font

package
v0.0.0-...-d956aad Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2020 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Face

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

func DefaultFont

func DefaultFont(size int, scaling float64) Face

Returns default font (bariolregular) with specified size and scaling

func NewFace

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

func (Face) Metrics

func (face Face) Metrics() font.Metrics

func (Face) Px

func (face Face) Px(v unit.Value) int

Jump to

Keyboard shortcuts

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