font

package
v0.0.0-...-bf68151 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RenderingLineHeight = 18
)

Variables

This section is empty.

Functions

func DrawText

func DrawText(screen *ebiten.Image, str string, ox, oy int, op *DrawTextOptions)

func DrawTextToScratchPad

func DrawTextToScratchPad(str string, scale float64, lang language.Tag)

func MeasureSize

func MeasureSize(text string) (int, int)

func ToValidContent

func ToValidContent(str string) string

Types

type DrawTextOptions

type DrawTextOptions struct {
	Scale        float64
	TextAlign    data.TextAlign
	Color        color.Color
	UseRuneCount bool
	RuneCount    int
	Language     language.Tag
}

Jump to

Keyboard shortcuts

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