fonts

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LineHeight

func LineHeight(face font.Face, spacing fixed.Int26_6) fixed.Int26_6

func OpenFace

func OpenFace(size string) (font.Face, error)

func SupportedSizes

func SupportedSizes() []string

Types

type LinePosition

type LinePosition struct {
	Text string
	fixed.Point26_6
	// contains filtered or unexported fields
}

type ParagraphScale

type ParagraphScale struct {
	Height fixed.Int26_6
	Width  fixed.Int26_6
	Lines  []LinePosition
}

func ScaleParagraph

func ScaleParagraph(drawer font.Drawer, align string, text string) (s ParagraphScale)

Jump to

Keyboard shortcuts

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