opentype

package
Version: v0.0.0-...-0057e87 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: MIT, Unlicense Imports: 16 Imported by: 25

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

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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