Back to godoc.org

Package font

v0.0.0-...-bf68151
Latest Go to latest

The highest tagged major version is .

Published: Jul 13, 2019 | License: Apache-2.0 | Module: github.com/hajimehoshi/rpgsnack-runtime

Index

Constants

const (
	RenderingLineHeight = 18
)

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

type DrawTextOptions

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier