opentype

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: MIT, Unlicense Imports: 16 Imported by: 0

Documentation

Overview

Package opentype implements text layout and shaping for OpenType files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Font

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

Font implements the text.Shaper interface using a rich text shaping engine.

func Parse

func Parse(src []byte) (*Font, error)

Parse constructs a Font from source bytes.

func (*Font) Layout

func (f *Font) Layout(ppem fixed.Int26_6, maxWidth int, lc system.Locale, txt io.RuneReader) ([]text.Line, error)

func (*Font) Metrics

func (f *Font) Metrics(ppem fixed.Int26_6) font.Metrics

func (*Font) Shape

func (f *Font) Shape(ppem fixed.Int26_6, str text.Layout) clip.PathSpec

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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