shaping

package
v0.0.0-...-07bc63f Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Direction

type Direction int
const (
	LeftToRight Direction = 0
)

type Font

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

func NewFont

func NewFont(b []byte, index uint) (Font, error)

func (Font) Destroy

func (f Font) Destroy()

func (Font) Shape

func (f Font) Shape(text string, size float64, direction Direction, script Script) []Glyph

type Glyph

type Glyph struct {
	ID       uint16
	XAdvance int32
	YAdvance int32
	XOffset  int32
	YOffset  int32
}

type Script

type Script uint32
const (
	Latin Script = 0
)

Jump to

Keyboard shortcuts

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